Details
-
Bug
-
Resolution: Fixed
-
Minor
-
Lustre 2.12.6, Lustre 2.15.0
-
None
-
3
-
9223372036854775807
Description
When a nodemap is set, moving a directory from outside of Lustre to inside Lustre reports "Operation not permitted" error.
This can be reproduced with a nodemap like the one below, where admin and trusted properties are set to 1.
[root@s20 ~]# lctl get_param nodemap.s20.*
nodemap.s20.admin_nodemap=1
nodemap.s20.audit_mode=1
nodemap.s20.deny_unknown=0
nodemap.s20.exports=
[
]
nodemap.s20.fileset=
nodemap.s20.id=5
nodemap.s20.idmap=[
]
nodemap.s20.map_mode=both
nodemap.s20.ranges=
[
{ id: 5, start_nid: 10.128.8.171@tcp, end_nid: 10.128.8.171@tcp }
]
nodemap.s20.sepol=
nodemap.s20.squash_gid=99
nodemap.s20.squash_uid=99
nodemap.s20.trusted_nodemap=1
[root@s20 ~]# mkdir /tmp/s20_test [root@s20 ~]# mv /tmp/s20_test /lustre mv: preserving permissions for ‘/lustre/s20_test’: Operation not permitted
Error is returned from mdt_reint_setxattr().