Move KV FS header into a separate file

This commit is contained in:
Vitaliy Filippov
2024-03-16 13:24:36 +03:00
parent e5bb986164
commit 7c235c9103
16 changed files with 159 additions and 197 deletions
+2 -2
View File
@@ -6,8 +6,8 @@
#include <sys/time.h>
#include "str_util.h"
#include "nfs_proxy.h"
#include "nfs_kv.h"
nfsstat3 vitastor_nfs_map_err(int err)
{
@@ -140,5 +140,5 @@ uint64_t kv_fh_inode(const std::string & fh)
bool kv_fh_valid(const std::string & fh)
{
return fh == KV_ROOT_HANDLE || fh.size() == 9 && fh[0] == 'S' || fh.size() > 17 && fh[0] == 'I';
return fh == NFS_ROOT_HANDLE || fh.size() == 9 && fh[0] == 'S' || fh.size() > 17 && fh[0] == 'I';
}