Commit 973189ab authored by Steve French's avatar Steve French

SMB3: update comment to clarify enumerating snapshots

Trivial update to comment suggested by Pavel.
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent d070f9dd
...@@ -1821,6 +1821,14 @@ smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon, ...@@ -1821,6 +1821,14 @@ smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon,
u32 max_response_size; u32 max_response_size;
struct smb_snapshot_array snapshot_in; struct smb_snapshot_array snapshot_in;
/*
* On the first query to enumerate the list of snapshots available
* for this volume the buffer begins with 0 (number of snapshots
* which can be returned is zero since at that point we do not know
* how big the buffer needs to be). On the second query,
* it (ret_data_len) is set to number of snapshots so we can
* know to set the maximum response size larger (see below).
*/
if (get_user(ret_data_len, (unsigned int __user *)ioc_buf)) if (get_user(ret_data_len, (unsigned int __user *)ioc_buf))
return -EFAULT; return -EFAULT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment