Unverified Commit e65cfc30 authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

Removed 'BLOCKSIZE' unused config constant

parent 9baa2639
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -9,8 +9,6 @@
// Daemon path to auxiliary files
#define DAEMON_AUX_PATH "/tmp"

// XXX Should blocksize and chunksize be merged?
#define BLOCKSIZE 524288 // in bytes 512KB
#define CHUNKSIZE 524288 // in bytes 512KB

// What metadata is used TODO this has to be parametrized or put into a configuration file
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ int metadata_to_stat(const std::string& path, const Metadata& md, struct stat& a
    attr.st_uid = CTX->fs_conf()->uid;
    attr.st_gid = CTX->fs_conf()->gid;
    attr.st_rdev = 0;
    attr.st_blksize = BLOCKSIZE;
    attr.st_blksize = CHUNKSIZE;
    attr.st_blocks = 0;

    memset(&attr.st_atim, 0, sizeof(timespec));