diff options
author | Tim Prouty <tprouty@samba.org> | 2009-02-15 23:38:53 -0800 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-02-19 20:58:01 -0800 |
commit | 6fbebb5369211b72545a1dd588bc6b9fa04210a1 (patch) | |
tree | b095dd3cc88369ec8f1e6e3af6b033990998b17f /source3/modules/vfs_default.c | |
parent | 669f2a02e29195aaba8cb2f3e50cb2ce66b904a6 (diff) | |
download | samba-6fbebb5369211b72545a1dd588bc6b9fa04210a1.tar.gz samba-6fbebb5369211b72545a1dd588bc6b9fa04210a1.tar.bz2 samba-6fbebb5369211b72545a1dd588bc6b9fa04210a1.zip |
s3: Modify SMB_VFS_FILE_ID_CREATE to take a stat struct
Since file_id_create_dev is incompatible with the concept of file_ids,
it is now static and in the one file that needs it.
Diffstat (limited to 'source3/modules/vfs_default.c')
-rw-r--r-- | source3/modules/vfs_default.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index f52ca09c08..c18ec268d3 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -1042,9 +1042,19 @@ static int vfswrap_chflags(vfs_handle_struct *handle, const char *path, int flag #endif } -static struct file_id vfswrap_file_id_create(struct vfs_handle_struct *handle, SMB_DEV_T dev, SMB_INO_T inode) +static struct file_id vfswrap_file_id_create(struct vfs_handle_struct *handle, + SMB_STRUCT_STAT *sbuf) { - return file_id_create_dev(dev, inode); + struct file_id key; + + /* the ZERO_STRUCT ensures padding doesn't break using the key as a + * blob */ + ZERO_STRUCT(key); + + key.devid = sbuf->st_dev; + key.inode = sbuf->st_ino; + + return key; } static NTSTATUS vfswrap_streaminfo(vfs_handle_struct *handle, |