1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-30 20:23:49 +03:00

r24120: add a file_id_create() hook into the VFS layer

it's needed for some cluster filesystems to
overload this function.

metze
This commit is contained in:
Stefan Metzmacher
2007-08-02 08:53:24 +00:00
committed by Gerald (Jerry) Carter
parent d4d550aa2b
commit cdaa24e804
10 changed files with 39 additions and 18 deletions

View File

@@ -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
*/