<html><body><p><font size="2" face="sans-serif">From design docs can see that Spectrum scale allows changing of timestamps for immutable files.</font><br><font size="2" face="sans-serif">+ Haizhu to confirm this as well.</font><br><br><font size="2" face="sans-serif">Regards, The Spectrum Scale (GPFS) team<br><br>------------------------------------------------------------------------------------------------------------------<br>If you feel that your question can benefit other users of  Spectrum Scale (GPFS), then please post it to the public IBM developerWroks Forum at <a href="https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000000479">https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000000479</a>. <br><br>If your query concerns a potential software error in Spectrum Scale (GPFS) and you have an IBM software maintenance contract please contact  1-800-237-5511 in the United States or your local IBM Service Center in other countries. <br><br>The forum is informally monitored as time permits and should not be used for priority messages to the Spectrum Scale (GPFS) team.</font><br><br><img width="16" height="16" src="cid:1__=0ABB0287DFD5620C8f9e8a93df938690@ibm.com" border="0" alt="Inactive hide details for "Paul Ward" ---28-03-2022 06.56.04 PM---Hi Jürgen, We noticed this behaviour when we were trying to t"><font size="2" color="#424282" face="sans-serif">"Paul Ward" ---28-03-2022 06.56.04 PM---Hi Jürgen, We noticed this behaviour when we were trying to test immutability on our newly installed</font><br><br><font size="1" color="#5F5F5F" face="sans-serif">From:        </font><font size="1" face="sans-serif">"Paul Ward" <p.ward@nhm.ac.uk></font><br><font size="1" color="#5F5F5F" face="sans-serif">To:        </font><font size="1" face="sans-serif">"gpfsug main discussion list" <gpfsug-discuss@gpfsug.org></font><br><font size="1" color="#5F5F5F" face="sans-serif">Date:        </font><font size="1" face="sans-serif">28-03-2022 06.56 PM</font><br><font size="1" color="#5F5F5F" face="sans-serif">Subject:        </font><font size="1" face="sans-serif">[EXTERNAL] Re: [gpfsug-discuss] immutable file in an immutable folder can be touched</font><br><font size="1" color="#5F5F5F" face="sans-serif">Sent by:        </font><font size="1" face="sans-serif">"gpfsug-discuss" <gpfsug-discuss-bounces@gpfsug.org></font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><tt><font size="2">Hi Jürgen,<br><br>We noticed this behaviour when we were trying to test immutability on our newly installed solution.<br>We tried using touch with a date in the past to test the expiry date.<br>We noticed although touch changed the timestamp, it didn't change wherever the policy engine checked.<br><br>We found a work around for our testing, so I think we accepted it as a 'feature'. <br>I can't find a support ticket, so I am assuming we didn't report it.<br><br><br>Kindest regards,<br>Paul<br><br>Paul Ward<br>TS Infrastructure Architect<br>Natural History Museum<br>T: 02079426450<br>E: p.ward@nhm.ac.uk<br><br><br>-----Original Message-----<br>From: gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org> On Behalf Of Hannappel, Juergen<br>Sent: 28 March 2022 13:25<br>To: gpfsug-discuss <gpfsug-discuss@gpfsug.org><br>Subject: Re: [gpfsug-discuss] immutable file in an immutable folder can be touched<br><br>... if I try a similar action e.g on ext4 where I can use the posix way with ioctl(fd, FS_IOC_GETFLAGS, &flags) flags |= FS_IMMUTABLE_FL; ioctl(fd, FS_IOC_SETFLAGS, &flags)<br><br>the touch fails and the mtime remains unchanged....<br><br>----- Original Message -----<br>> From: "Juergen Hannappel" <juergen.hannappel@desy.de><br>> To: "gpfsug main discussion list" <gpfsug-discuss@spectrumscale.org><br>> Sent: Monday, 28 March, 2022 11:50:50<br>> Subject: [gpfsug-discuss] immutable file in an immutable folder can be <br>> touched<br><br>> Hi,<br>> I have an immutable file in an immutable folder:<br>> <br>> mmchattr -i yes mutabilityTest/file<br>> mmchattr -i yes mutabilityTest<br>> ls -la mutabilityTest<br>> total 18<br>> drwxr-xr-x 2 hannappj it 4096 Mar 28 11:45 .<br>> drwxr-xr-x 7 hannappj it 8192 Mar 28 11:45 ..<br>> -rw-r--r-- 1 hannappj it   30 Mar 28 11:45 file<br>> <br>> mmlsattr -L mutabilityTest mutabilityTest/file | grep immu<br>> immutable:            yes<br>> immutable:            yes<br>> <br>> <br>> Now i do a touch:<br>> touch mutabilityTest/file<br>> <br>> no error, and the modification time is changed:<br>> ls -la mutabilityTest<br>> total 18<br>> drwxr-xr-x 2 hannappj it 4096 Mar 28 11:45 .<br>> drwxr-xr-x 7 hannappj it 8192 Mar 28 11:45 ..<br>> -rw-r--r-- 1 hannappj it   30 Mar 28 11:46 file<br>> <br>> stat mutabilityTest/file<br>>  File: 'mutabilityTest/file'<br>>  Size: 30                         Blocks: 2          IO Block: 4194304 regular file<br>> Device: 2eh/46d                 Inode: 112989      Links: 1<br>> Access: (0644/-rw-r--r--)  Uid: (28851/hannappj)   Gid: ( 1000/      it)<br>> Access: 2022-03-28 11:46:28.454807982 +0200<br>> Modify: 2022-03-28 11:46:28.454807982 +0200<br>> Change: 2022-03-28 11:46:28.454807982 +0200<br>> <br>> <br>> Shouldn't the immutability of the file include its change time?<br>> <br>> <br>> <br>> --<br>> Dr. Jürgen Hannappel  DESY/IT    Tel.  : +49 40 8998-4616<br>> <br>> _______________________________________________<br>> gpfsug-discuss mailing list<br>> gpfsug-discuss at gpfsug.org<br>> </font></tt><tt><font size="2"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsu">https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsu</a></font></tt><tt><font size="2"> <br>> g.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss_gpfsug.org&amp;data=04%7C0<br>> 1%7Cp.ward%40nhm.ac.uk%7C2c7afbe81224404273cf08da10b63ad3%7C73a29c014e<br>> 78437fa0d4c8553e1960c1%7C1%7C0%7C637840672748970653%7CUnknown%7CTWFpbG<br>> Zsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%<br>> 3D%7C3000&amp;sdata=I9bS8GSW5AeZbEg%2FQR2aCQd4KNd3lRmg2K1NJ3hQTk4%3D&a<br>> mp;reserved=0<br><br>_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at gpfsug.org<br></font></tt><tt><font size="2"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss_gpfsug.org&data=04%7C01%7Cp.ward%40nhm.ac.uk%7C2c7afbe81224404273cf08da10b63ad3%7C73a29c014e78437fa0d4c8553e1960c1%7C1%7C0%7C637840672749126883%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=O3t6BTddF3gL4DGlRAA9eweV8Vk%2BdwXj1We4GrGU%2BY8%3D&reserved=0">https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss_gpfsug.org&data=04%7C01%7Cp.ward%40nhm.ac.uk%7C2c7afbe81224404273cf08da10b63ad3%7C73a29c014e78437fa0d4c8553e1960c1%7C1%7C0%7C637840672749126883%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=O3t6BTddF3gL4DGlRAA9eweV8Vk%2BdwXj1We4GrGU%2BY8%3D&reserved=0</a></font></tt><tt><font size="2"> <br><br>_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at gpfsug.org<br></font></tt><tt><font size="2"><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org">http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org</a></font></tt><tt><font size="2"> <br></font></tt><br><br><BR>
<BR>
</body></html>