diff options
author | Jeremy Allison <jra@samba.org> | 2011-01-25 14:01:52 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-01-25 14:01:52 -0800 |
commit | b97f1ce68a512cb0da71ee1de9ddaa49dd466068 (patch) | |
tree | 4e3964b42e078b5d631502c06062c8788b0f093e /source3/smbd/oplock.c | |
parent | 76418e23bcde1eba4dfefbc10c51c083567a52e6 (diff) | |
download | samba-b97f1ce68a512cb0da71ee1de9ddaa49dd466068.tar.gz samba-b97f1ce68a512cb0da71ee1de9ddaa49dd466068.tar.bz2 samba-b97f1ce68a512cb0da71ee1de9ddaa49dd466068.zip |
Add name_hash into the share mode entry struct (as yet only use for renames to identify a specific path).
Diffstat (limited to 'source3/smbd/oplock.c')
-rw-r--r-- | source3/smbd/oplock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c index 6f4d5780f3..e92fbd43af 100644 --- a/source3/smbd/oplock.c +++ b/source3/smbd/oplock.c @@ -873,6 +873,7 @@ void share_mode_entry_to_message(char *msg, const struct share_mode_entry *e) SIVAL(msg,OP_BREAK_MSG_FILE_ID_OFFSET,e->share_file_id); SIVAL(msg,OP_BREAK_MSG_UID_OFFSET,e->uid); SSVAL(msg,OP_BREAK_MSG_FLAGS_OFFSET,e->flags); + SIVAL(msg,OP_BREAK_MSG_NAME_HASH_OFFSET,e->name_hash); #ifdef CLUSTER_SUPPORT SIVAL(msg,OP_BREAK_MSG_VNN_OFFSET,e->pid.vnn); #endif @@ -896,6 +897,7 @@ void message_to_share_mode_entry(struct share_mode_entry *e, char *msg) e->share_file_id = (unsigned long)IVAL(msg,OP_BREAK_MSG_FILE_ID_OFFSET); e->uid = (uint32)IVAL(msg,OP_BREAK_MSG_UID_OFFSET); e->flags = (uint16)SVAL(msg,OP_BREAK_MSG_FLAGS_OFFSET); + e->name_hash = IVAL(msg,OP_BREAK_MSG_NAME_HASH_OFFSET); #ifdef CLUSTER_SUPPORT e->pid.vnn = IVAL(msg,OP_BREAK_MSG_VNN_OFFSET); #endif |