diff options
author | Steven French <smfrench@gmail.com> | 2013-10-09 13:36:35 -0500 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-11-02 12:52:38 -0500 |
commit | 2167114c6ea6e76fd84e368bae5389d37dd156aa (patch) | |
tree | 82c967e5b71698a7987f52434c429b2c19dccb35 /fs/cifs/smb2ops.c | |
parent | 7f48558e6489d032b1584b0cc9ac4bb11072c034 (diff) | |
download | op-kernel-dev-2167114c6ea6e76fd84e368bae5389d37dd156aa.zip op-kernel-dev-2167114c6ea6e76fd84e368bae5389d37dd156aa.tar.gz |
Query device characteristics at mount time from server on SMB2/3 not just on cifs mounts
Currently SMB2 and SMB3 mounts do not query the device information at mount time
from the server as is done for cifs. These can be useful for debugging.
This is a minor patch, that extends the previous one (which added ability to
query file system attributes at mount time - this returns the device
characteristics - also via in /proc/fs/cifs/DebugData)
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2ops.c')
-rw-r--r-- | fs/cifs/smb2ops.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index a53e205..79084d6 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -229,7 +229,10 @@ smb2_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon) if (rc) return; - SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid); + SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, + FS_ATTRIBUTE_INFORMATION); + SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, + FS_DEVICE_INFORMATION); SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); return; } |