summaryrefslogtreecommitdiff
path: root/source4/ntvfs/simple
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-10 06:36:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:39 -0500
commit35537c1255e9508b77fd9d9def1ac96e423bee46 (patch)
treef140c802a98188f13c891c02332d7604a71f45e3 /source4/ntvfs/simple
parentf9529111af758191c0c3ad5794ea9a5fe1e2a59b (diff)
downloadsamba-35537c1255e9508b77fd9d9def1ac96e423bee46.tar.gz
samba-35537c1255e9508b77fd9d9def1ac96e423bee46.tar.bz2
samba-35537c1255e9508b77fd9d9def1ac96e423bee46.zip
r5302: fixed a compilation problem on solaris caused by the recent include
changes (This used to be commit e7e015f79b10c353848a17f31c91a0593790a560)
Diffstat (limited to 'source4/ntvfs/simple')
-rw-r--r--source4/ntvfs/simple/svfs_util.c10
-rw-r--r--source4/ntvfs/simple/vfs_simple.c11
2 files changed, 11 insertions, 10 deletions
diff --git a/source4/ntvfs/simple/svfs_util.c b/source4/ntvfs/simple/svfs_util.c
index 3f6e205e71..ac5cf69e9a 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 6f634efd53..cebf7a5c32 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,