[LU-11369] hsm: files are not dirtied when modified by someone else than their owner Created: 12/Sep/18  Updated: 05/Aug/20  Resolved: 13/Oct/18

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

Type: Bug Priority: Minor
Reporter: CEA Assignee: John Hammond
Resolution: Fixed Votes: 0
Labels: HSM

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Assuming you have a mounted lustre file system at /mnt/lustre, and a running copytool for it, the next commands should reproduce the issue:

[root] # useradd alice
[root] # mkdir /mnt/lustre/alice
[root] # chown alice: /mnt/lustre/alice
[root] # su - alice
[alice] $ touch /mnt/lustre/alice/file
[alice] $ chmod o+w /mnt/lustre/alice/file
[alice] $ exit
logout
[root] # lfs hsm_archive /mnt/lustre/alice/file
[root] # lfs hsm_state /mnt/lustre/alice/file
/mnt/lustre/alice/file: (0x00000009) exists archived, archive_id:1
[root] # useradd bob
[root] # su - bob
[bob] $ echo "123" > /mnt/lustre/alice/file
[bob] $ exit
logout
[root] # lfs hsm_state /mnt/lustre/alice/file
/mnt/lustre/alice/file: (0x00000009) exists archived, archive_id:1
[root] # dmesg | tail -n 2
[  336.217465] LustreError: 11513:0:(mdt_reint.c:661:mdt_add_dirty_flag()) file attribute change error for [0x200000401:0x2:0x0]: -1
[  336.225859] LustreError: 11520:0:(mdt_reint.c:661:mdt_add_dirty_flag()) file attribute change error for [0x200000401:0x2:0x0]: -1


 Comments   
Comment by Gerrit Updater [ 13/Sep/18 ]

John L. Hammond (jhammond@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33158
Subject: LU-11369 hsm: allow non-owner writers to set HSM state dirty
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: e1b046661d557e460c5a78fd19832bf62efbb397

Comment by Gerrit Updater [ 12/Oct/18 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33158/
Subject: LU-11369 hsm: allow non-owner writers to set HSM state dirty
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a9e48fa940c45e51fd792c5d9fc4c647f64ed94e

Comment by Peter Jones [ 13/Oct/18 ]

Landed for 2.12

Generated at Sat Feb 10 02:43:16 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.