Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
3
-
9223372036854775807
Description
When squash_projid is set, the client should show the limit for the squashed project.
nodemap_modify --name default --property squash_projid --value=1000 lfs setquota -p 1000 -B20M /mnt/lustre df -h | tail -n1 192.168.1.82@tcp:/lustre 612M 2.8M 556M 1% /mnt/lustre
It should show 20M instead of 612M when nodemap is activated.
At the same time it works for the directory:
Filesystem Size Used Avail Use% Mounted on # lfs df $DIR/$tdir 192.168.1.82@tcp:/lustre 10M 0 10M 0% /mnt/lustre Filesystem Size Used Avail Use% Mounted on # lfs df $DIR 192.168.1.82@tcp:/lustre 612M 2.8M 556M 1% /mnt/lustre
From the logs for $DIR/$tdir it gets squashed id when does ll_close_inode_openhandled() -> mdt_close -> nodemap_map_id.