<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:48:03 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-11916] LSOM: lazy_stat mount option not recognized</title>
                <link>https://jira.whamcloud.com/browse/LU-11916</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I was trying to use &quot;LSOM enforced&quot; on a 2.12 client (for testing purpose, not very important), and noticed the lazy_stat option doesn&apos;t seem to work:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;[794713.969118] LustreError: 152-6: Unknown option &apos;lazy_stat&apos;, won&apos;t mount.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This new mount option was mentioned in Li Xi&apos;s presentation at LUG&apos;18 (page 7) &lt;a href=&quot;http://cdn.opensfs.org/wp-content/uploads/2018/04/Xi-Lazy_Size_on_MDS_DDN.pdf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://cdn.opensfs.org/wp-content/uploads/2018/04/Xi-Lazy_Size_on_MDS_DDN.pdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Is there a way to enforce LSOM on a Lustre client, or not yet?&lt;br/&gt;
Thanks!&lt;br/&gt;
Stephane&lt;/p&gt;</description>
                <environment>CentOS 7.6, MOFED 4.5</environment>
        <key id="54756">LU-11916</key>
            <summary>LSOM: lazy_stat mount option not recognized</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                        <assignee username="qian_wc">Qian Yingjin</assignee>
                                    <reporter username="sthiell">Stephane Thiell</reporter>
                        <labels>
                    </labels>
                <created>Fri, 1 Feb 2019 23:10:46 +0000</created>
                <updated>Fri, 15 May 2020 16:27:48 +0000</updated>
                            <resolved>Fri, 15 May 2020 14:38:25 +0000</resolved>
                                    <version>Lustre 2.12.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="241205" author="pjones" created="Fri, 1 Feb 2019 23:16:21 +0000"  >&lt;p&gt;Qian&lt;/p&gt;

&lt;p&gt;Can you comment as to whether this was included in the feature as it ended up in 2.12?&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="241206" author="adilger" created="Fri, 1 Feb 2019 23:22:00 +0000"  >&lt;p&gt;The &quot;&lt;tt&gt;lazy_stat&lt;/tt&gt;&quot; mount option is not in the 2.12 release.  The closest is patch &lt;a href=&quot;https://review.whamcloud.com/33412&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33412&lt;/a&gt;&lt;br/&gt;
&quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11554&quot; title=&quot;Make stat() work with LSOM&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11554&quot;&gt;&lt;del&gt;LU-11554&lt;/del&gt;&lt;/a&gt; som: Make stat() work with LSOM&lt;/tt&gt;&quot;, but it also is not yet landed, since it isn&apos;t clear what the usage implications are.&lt;/p&gt;

&lt;p&gt;The current LSOM implementation isn&apos;t just &quot;the size is a bit outdated&quot;, it is &quot;the size and blocks stored on the MDS are zero until after the file is closed&quot;, so this would likely break many applications, and this can only be set on a per-mountpoint basis.&lt;/p&gt;

&lt;p&gt;Could you explain more how you want to us LSOM?  The current implementation is mostly intended for MDT-level scanning.  There is also a patch to add support for &quot;&lt;tt&gt;lfs find&lt;/tt&gt;&quot; that is fairly safe, and discussion around adding support for &lt;tt&gt;statx()&lt;/tt&gt;, which is what I think applications should use when they want the lazy size.&lt;/p&gt;

&lt;p&gt;For RBH usage, the 33412 patch and a separate mountpoint may be enough, as long as you don&apos;t trust the size on recently-created files.&lt;/p&gt;</comment>
                            <comment id="241207" author="sthiell" created="Fri, 1 Feb 2019 23:37:59 +0000"  >&lt;p&gt;Thanks Andreas for the information and pointers, this is super helpful. I understand the interest of LSOM for MDT-level scanning, but I wanted to see how it would break (or not) applications if also enforced for (regular) &lt;tt&gt;stat()&lt;/tt&gt;. &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; So no real life use-case at the moment, but I&apos;ll think about it during the weekend.&lt;/p&gt;</comment>
                            <comment id="270323" author="adilger" created="Fri, 15 May 2020 14:38:25 +0000"  >&lt;p&gt;The &lt;tt&gt;statx()&lt;/tt&gt; API is going to land soon, and &quot;&lt;tt&gt;lfs find&lt;/tt&gt;&quot; already can understand LSOM.&lt;/p&gt;</comment>
                            <comment id="270341" author="sthiell" created="Fri, 15 May 2020 16:27:48 +0000"  >&lt;p&gt;Excellent, thanks!&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="51920">LU-10934</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="53684">LU-11554</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i00auv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>