Program that uses the libcephfs library and computes the sha1sum of a file in CephFS.
- Clone the Ceph GitRepo
- Install all the dependencies
- Build Ceph
- Run a test cluster
Commands for creating a cluster
After running a test cluster, follow the following steps to compute sha1sum of a file in CephFS
python3 sha1sum.py <file-name>
Compiling the sha1sum.c file
gcc sha1sum.c -lssl -lcrypto ceph/build/lib/libcephfs.so
./a.out <file-name>