bufferlist bl;
encode(superblock, bl);
return safe_write_file(basedir.c_str(), "superblock",
- bl.c_str(), bl.length());
+ bl.c_str(), bl.length(), 0600);
}
int FileStore::read_superblock()
encode(target_version, bl);
return safe_write_file(basedir.c_str(), "store_version",
- bl.c_str(), bl.length());
+ bl.c_str(), bl.length(), 0600);
}
int FileStore::upgrade()