<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Yes, that’s correct. Atime, mtime and ctime can be changed, in addition, if the file is under an immutable fileset, mtime and ctime can be changed, atime is overloaded with expiration time.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black"><hupancha@in.ibm.com> on behalf of "scale@us.ibm.com" <scale@us.ibm.com><br>
<b>Date: </b>Tuesday, March 29, 2022 at 8:57 AM<br>
<b>To: </b>gpfsug main discussion list <gpfsug-discuss@gpfsug.org><br>
<b>Cc: </b>gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org>, "juergen.hannappel@desy.de" <juergen.hannappel@desy.de>, "p.ward@nhm.ac.uk" <p.ward@nhm.ac.uk>, Haizhu Liu <haizhu@us.ibm.com><br>
<b>Subject: </b>Re: [EXTERNAL] Re: [gpfsug-discuss] immutable file in an immutable folder can be touched<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif">From design docs can see that Spectrum scale allows changing of timestamps for immutable files.</span><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">+ Haizhu to confirm this as well.</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",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.</span><br>
<br>
<img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="_x0000_i1026" src="cid:image001.gif@01D84352.57823540" 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"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#424282">"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</span><br>
<br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">From: </span>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif">"Paul Ward" <p.ward@nhm.ac.uk></span><br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">To: </span>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif">"gpfsug main discussion list" <gpfsug-discuss@gpfsug.org></span><br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Date: </span>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif">28-03-2022 06.56 PM</span><br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Subject:
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">[EXTERNAL] Re: [gpfsug-discuss] immutable file in an immutable folder can be touched</span><br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Sent by:
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">"gpfsug-discuss" <gpfsug-discuss-bounces@gpfsug.org></span><o:p></o:p></p>
<div class="MsoNormal">
<hr size="0" width="100%" noshade="" style="color:#8091A5" align="left">
</div>
<p class="MsoNormal"><br>
<br>
<br>
<tt><span style="font-size:10.0pt">Hi Jürgen,</span></tt><span style="font-size:10.0pt;font-family:"Courier New""><br>
<br>
<tt>We noticed this behaviour when we were trying to test immutability on our newly installed solution.</tt><br>
<tt>We tried using touch with a date in the past to test the expiry date.</tt><br>
<tt>We noticed although touch changed the timestamp, it didn't change wherever the policy engine checked.</tt><br>
<br>
<tt>We found a work around for our testing, so I think we accepted it as a 'feature'.
</tt><br>
<tt>I can't find a support ticket, so I am assuming we didn't report it.</tt><br>
<br>
<br>
<tt>Kindest regards,</tt><br>
<tt>Paul</tt><br>
<br>
<tt>Paul Ward</tt><br>
<tt>TS Infrastructure Architect</tt><br>
<tt>Natural History Museum</tt><br>
<tt>T: 02079426450</tt><br>
<tt>E: p.ward@nhm.ac.uk</tt><br>
<br>
<br>
<tt>-----Original Message-----</tt><br>
<tt>From: gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org> On Behalf Of Hannappel, Juergen</tt><br>
<tt>Sent: 28 March 2022 13:25</tt><br>
<tt>To: gpfsug-discuss <gpfsug-discuss@gpfsug.org></tt><br>
<tt>Subject: Re: [gpfsug-discuss] immutable file in an immutable folder can be touched</tt><br>
<br>
<tt>... 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)</tt><br>
<br>
<tt>the touch fails and the mtime remains unchanged....</tt><br>
<br>
<tt>----- Original Message -----</tt><br>
<tt>> From: "Juergen Hannappel" <juergen.hannappel@desy.de></tt><br>
<tt>> To: "gpfsug main discussion list" <gpfsug-discuss@spectrumscale.org></tt><br>
<tt>> Sent: Monday, 28 March, 2022 11:50:50</tt><br>
<tt>> Subject: [gpfsug-discuss] immutable file in an immutable folder can be </tt>
<br>
<tt>> touched</tt><br>
<br>
<tt>> Hi,</tt><br>
<tt>> I have an immutable file in an immutable folder:</tt><br>
<tt>> </tt><br>
<tt>> mmchattr -i yes mutabilityTest/file</tt><br>
<tt>> mmchattr -i yes mutabilityTest</tt><br>
<tt>> ls -la mutabilityTest</tt><br>
<tt>> total 18</tt><br>
<tt>> drwxr-xr-x 2 hannappj it 4096 Mar 28 11:45 .</tt><br>
<tt>> drwxr-xr-x 7 hannappj it 8192 Mar 28 11:45 ..</tt><br>
<tt>> -rw-r--r-- 1 hannappj it   30 Mar 28 11:45 file</tt><br>
<tt>> </tt><br>
<tt>> mmlsattr -L mutabilityTest mutabilityTest/file | grep immu</tt><br>
<tt>> immutable:            yes</tt><br>
<tt>> immutable:            yes</tt><br>
<tt>> </tt><br>
<tt>> </tt><br>
<tt>> Now i do a touch:</tt><br>
<tt>> touch mutabilityTest/file</tt><br>
<tt>> </tt><br>
<tt>> no error, and the modification time is changed:</tt><br>
<tt>> ls -la mutabilityTest</tt><br>
<tt>> total 18</tt><br>
<tt>> drwxr-xr-x 2 hannappj it 4096 Mar 28 11:45 .</tt><br>
<tt>> drwxr-xr-x 7 hannappj it 8192 Mar 28 11:45 ..</tt><br>
<tt>> -rw-r--r-- 1 hannappj it   30 Mar 28 11:46 file</tt><br>
<tt>> </tt><br>
<tt>> stat mutabilityTest/file</tt><br>
<tt>>  File: 'mutabilityTest/file'</tt><br>
<tt>>  Size: 30         Blocks: 2          IO Block: 4194304 regular file</tt><br>
<tt>> Device: 2eh/46d Inode: 112989      Links: 1</tt><br>
<tt>> Access: (0644/-rw-r--r--)  Uid: (28851/hannappj)   Gid: ( 1000/      it)</tt><br>
<tt>> Access: 2022-03-28 11:46:28.454807982 +0200</tt><br>
<tt>> Modify: 2022-03-28 11:46:28.454807982 +0200</tt><br>
<tt>> Change: 2022-03-28 11:46:28.454807982 +0200</tt><br>
<tt>> </tt><br>
<tt>> </tt><br>
<tt>> Shouldn't the immutability of the file include its change time?</tt><br>
<tt>> </tt><br>
<tt>> </tt><br>
<tt>> </tt><br>
<tt>> --</tt><br>
<tt>> Dr. Jürgen Hannappel  DESY/IT    Tel.  : +49 40 8998-4616</tt><br>
<tt>> </tt><br>
<tt>> _______________________________________________</tt><br>
<tt>> gpfsug-discuss mailing list</tt><br>
<tt>> gpfsug-discuss at gpfsug.org</tt><br>
<tt>> <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> </tt><br>
<tt>> g.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss_gpfsug.org&amp;data=04%7C0</tt><br>
<tt>> 1%7Cp.ward%40nhm.ac.uk%7C2c7afbe81224404273cf08da10b63ad3%7C73a29c014e</tt><br>
<tt>> 78437fa0d4c8553e1960c1%7C1%7C0%7C637840672748970653%7CUnknown%7CTWFpbG</tt><br>
<tt>> Zsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%</tt><br>
<tt>> 3D%7C3000&amp;sdata=I9bS8GSW5AeZbEg%2FQR2aCQd4KNd3lRmg2K1NJ3hQTk4%3D&a</tt><br>
<tt>> mp;reserved=0</tt><br>
<br>
<tt>_______________________________________________</tt><br>
<tt>gpfsug-discuss mailing list</tt><br>
<tt>gpfsug-discuss at gpfsug.org</tt><br>
<tt><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> </tt><br>
<br>
<tt>_______________________________________________</tt><br>
<tt>gpfsug-discuss mailing list</tt><br>
<tt>gpfsug-discuss at gpfsug.org</tt><br>
<tt><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org">http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org</a> </tt><br>
</span><br>
<br>
<br>
<o:p></o:p></p>
</div>
</body>
</html>