summaryrefslogtreecommitdiffstats
path: root/source3/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-08-02 08:53:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:29:08 -0500
commit4b15f31f106f1dd69fdda721b5c3b787f5245a80 (patch)
tree34e14d007c0dc257723fff1379cb0968bfb6f410 /source3/lib
parenta0a9a301d258ffdd6e1f35a9d4d32c555237556c (diff)
downloadsamba-4b15f31f106f1dd69fdda721b5c3b787f5245a80.tar.gz
samba-4b15f31f106f1dd69fdda721b5c3b787f5245a80.tar.xz
samba-4b15f31f106f1dd69fdda721b5c3b787f5245a80.zip
r24120: add a file_id_create() hook into the VFS layer
it's needed for some cluster filesystems to overload this function. metze (This used to be commit cdaa24e8047399002e4b287a31a8340a665e580f)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/file_id.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/lib/file_id.c b/source3/lib/file_id.c
index 11263af0893..a92cca08fa5 100644
--- a/source3/lib/file_id.c
+++ b/source3/lib/file_id.c
@@ -25,7 +25,7 @@
return a file_id which gives a unique ID for a file given the device and
inode numbers
*/
-struct file_id file_id_create(SMB_DEV_T dev, SMB_INO_T inode)
+struct file_id file_id_create_dev(SMB_DEV_T dev, SMB_INO_T inode)
{
struct file_id key;
/* the ZERO_STRUCT ensures padding doesn't break using the key as a
@@ -39,12 +39,11 @@ struct file_id file_id_create(SMB_DEV_T dev, SMB_INO_T inode)
/*
generate a file_id from a stat structure
*/
-struct file_id file_id_sbuf(const SMB_STRUCT_STAT *sbuf)
+struct file_id vfs_file_id_from_sbuf(connection_struct *conn, const SMB_STRUCT_STAT *sbuf)
{
- return file_id_create(sbuf->st_dev, sbuf->st_ino);
+ return SMB_VFS_FILE_ID_CREATE(conn, sbuf->st_dev, sbuf->st_ino);
}
-
/*
return True if two file_id structures are equal
*/