[LU-3165] umask broken on master Created: 12/Apr/13  Updated: 19/Apr/13  Resolved: 19/Apr/13

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.4.0
Fix Version/s: Lustre 2.4.0

Type: Bug Priority: Blocker
Reporter: Christopher Morrone Assignee: Lai Siyao
Resolution: Fixed Votes: 0
Labels: LB

Severity: 3
Rank (Obsolete): 7715

 Description   

umask handling appears to be broken again on master. With x86_64 servers running 2.3.63-5chaos, and ppc64 clients at either 2.3.58 or 2.3.63, umask does not appear to be honored.

vulcanlac2:/p/lscratchv/morrone$ mkdir foo
vulcanlac2:/p/lscratchv/morrone$ touch bar
vulcanlac2:/p/lscratchv/morrone$ ls -la
total 298
drwx------    3 morrone morrone   5632 Apr 12 15:51 .
drwxr-xr-x 2121 root    root    293376 Apr 12 15:05 ..
-rw-rw-rw-    1 morrone morrone      0 Apr 12 15:51 bar
drwxrwxrwx    2 morrone morrone   5632 Apr 12 15:51 foo
vulcanlac2:/p/lscratchv/morrone$ umask
0077

Servers are running ZFS.



 Comments   
Comment by Christopher Morrone [ 12/Apr/13 ]

Perhaps another swabbing bug introduced in the umask handling code when it was recently reworked? An x86_64 client running lustre 2.1.4-3chaos does not see the umask problem. So either the server behaves differently for the older client, or the different is the architecture of the client.

Comment by Peter Jones [ 12/Apr/13 ]

Lai

Could you please look into this one?

Thanks

Peter

Comment by Ned Bass [ 13/Apr/13 ]

It looks like mdt_rec_create.cr_umask uses the rr_padding_3 field from the template struct mdt_rec_reint, but lustre_swab_mdt_rec_reint() was never updated to swab that field.

Comment by Lai Siyao [ 15/Apr/13 ]

Both rr_flags_h and rr_umask are missing in mdt_rec_reint, the patch is on http://review.whamcloud.com/#change,6054

Comment by Ned Bass [ 16/Apr/13 ]

Lai, your patch takes care of the umask problem. Thanks

Comment by Peter Jones [ 19/Apr/13 ]

Landed for 2.4

Generated at Sat Feb 10 01:31:32 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.