diff options
Diffstat (limited to 'source4/ntvfs')
-rw-r--r-- | source4/ntvfs/simple/svfs_util.c | 10 | ||||
-rw-r--r-- | source4/ntvfs/simple/vfs_simple.c | 11 |
2 files changed, 11 insertions, 10 deletions
diff --git a/source4/ntvfs/simple/svfs_util.c b/source4/ntvfs/simple/svfs_util.c index 3f6e205e71e..ac5cf69e9a6 100644 --- a/source4/ntvfs/simple/svfs_util.c +++ b/source4/ntvfs/simple/svfs_util.c @@ -182,13 +182,3 @@ uint16_t svfs_unix_to_dos_attrib(mode_t mode) return ret; } -/* - build a file_id from a stat struct -*/ -uint64_t svfs_file_id(struct stat *st) -{ - uint64_t ret = st->st_ino; - ret <<= 32; - ret |= st->st_dev; - return ret; -} diff --git a/source4/ntvfs/simple/vfs_simple.c b/source4/ntvfs/simple/vfs_simple.c index 6f634efd534..cebf7a5c327 100644 --- a/source4/ntvfs/simple/vfs_simple.c +++ b/source4/ntvfs/simple/vfs_simple.c @@ -173,6 +173,17 @@ static NTSTATUS svfs_chkpath(struct ntvfs_module_context *ntvfs, } /* + build a file_id from a stat struct +*/ +static uint64_t svfs_file_id(struct stat *st) +{ + uint64_t ret = st->st_ino; + ret <<= 32; + ret |= st->st_dev; + return ret; +} + +/* approximately map a struct stat to a generic fileinfo struct */ static NTSTATUS svfs_map_fileinfo(struct ntvfs_module_context *ntvfs, |