smb3: Add debug message for new file creation with idsfromsid mount option

Pavel noticed that a debug message (disabled by default) in creating the security
descriptor context could be useful for new file creation owner fields
(as we already have for the mode) when using mount parm idsfromsid.

[38120.392272] CIFS: FYI: owner S-1-5-88-1-0, group S-1-5-88-2-0
[38125.792637] CIFS: FYI: owner S-1-5-88-1-1000, group S-1-5-88-2-1000

Also cleans up a typo in a comment

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>

Changed files
+4 -2
fs
+2 -2
fs/cifs/inode.c
··· 1148 1148 1149 1149 1150 1150 /* 1151 - * 4. Tweak fattr based on mount options 1151 + * 3. Tweak fattr based on mount options 1152 1152 */ 1153 1153 1154 1154 /* check for Minshall+French symlinks */ ··· 1160 1160 } 1161 1161 1162 1162 /* 1163 - * 5. Update inode with final fattr data 1163 + * 4. Update inode with final fattr data 1164 1164 */ 1165 1165 1166 1166 if (!*inode) {
+2
fs/cifs/smb2pdu.c
··· 2337 2337 sids->group.SubAuthorities[0] = cpu_to_le32(88); 2338 2338 sids->group.SubAuthorities[1] = cpu_to_le32(2); 2339 2339 sids->group.SubAuthorities[2] = cpu_to_le32(current_fsgid().val); 2340 + 2341 + cifs_dbg(FYI, "owner S-1-5-88-1-%d, group S-1-5-88-2-%d\n", current_fsuid().val, current_fsgid().val); 2340 2342 } 2341 2343 2342 2344 /* See MS-SMB2 2.2.13.2.2 and MS-DTYP 2.4.6 */