<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:44:53 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-11554] Make stat() work with LSOM</title>
                <link>https://jira.whamcloud.com/browse/LU-11554</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Currently, stat() does not work with LSOM yet, so using &quot;ls -l&quot; or &quot;mdtest&quot; for testing is not a going to exercise the LSOM code.&lt;br/&gt;
We should add mount options or proc interface (&lt;em&gt;lctl set_param llite.*.lsom=1&lt;/em&gt;) to enable using LSOM as retruned file&apos;s size and blocks for stat() system call, and make stat() behavior selectable.&lt;/p&gt;</description>
                <environment></environment>
        <key id="53684">LU-11554</key>
            <summary>Make stat() work with LSOM</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</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="3">Duplicate</resolution>
                                        <assignee username="qian_wc">Qian Yingjin</assignee>
                                    <reporter username="qian_wc">Qian Yingjin</reporter>
                        <labels>
                            <label>LSOM</label>
                    </labels>
                <created>Mon, 22 Oct 2018 06:52:04 +0000</created>
                <updated>Thu, 11 Jun 2020 08:36:34 +0000</updated>
                            <resolved>Thu, 11 Jun 2020 08:36:34 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="235195" author="gerrit" created="Mon, 22 Oct 2018 07:12:35 +0000"  >&lt;p&gt;Yingjin Qian (qian@ddn.com) uploaded a new 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;
Subject: &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;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 3eb06b38ac88e42b12de4afd81c98c202d879076&lt;/p&gt;</comment>
                            <comment id="235198" author="adilger" created="Mon, 22 Oct 2018 14:14:02 +0000"  >&lt;p&gt;I think this is a lot like &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10934&quot; title=&quot;integrate statx() API with Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10934&quot;&gt;&lt;del&gt;LU-10934&lt;/del&gt;&lt;/a&gt;. The &lt;tt&gt;statx()&lt;/tt&gt; API already has a mechanism to allow &quot;lazy&quot; size to be send to userspace applications that know they don&apos;t care about the exact size. I don&apos;t think it would be practical/possible to have &lt;b&gt;all&lt;/b&gt; size on a mountpoint return the LSOM size via regular &lt;tt&gt;stat()&lt;/tt&gt;, since that would be much more likely to cause data loss (eg. client not reading all file data because the size is too small).&lt;/p&gt;

&lt;p&gt;I think the integration of LSOM with &quot;&lt;tt&gt;lfs find&lt;/tt&gt;&quot; is much higher priority. Also, FLR and DoM have totally correct SOM size/blocks, so if DoM is used to store the majority of small files, this will also avoid the majority of need for accurate SOM size. &lt;/p&gt;</comment>
                            <comment id="270316" author="adilger" created="Fri, 15 May 2020 14:27:44 +0000"  >&lt;p&gt;I think the only thing we should do here is use known valid SOM data (not &quot;lazy&quot;) from the MDS if it is available and can be returned to the client (e.g. from FLR files, or if a scrubbing process verifies the size and updates the state on the MDT inode like &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11962&quot; title=&quot;File LSOM updates to store proper size via FLR for regular stat() usage&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11962&quot;&gt;LU-11962&lt;/a&gt; from userspace).&lt;/p&gt;

&lt;p&gt;I think some argument could be made that if a file is accessed for read but it has not been modified in some time (e.g. a day or more), then the overhead of doing an extra RPC to start modifying it is outweighed by the benefit of doing fewer RPCs to the OSTs to get the size. &lt;/p&gt;</comment>
                            <comment id="272577" author="adilger" created="Thu, 11 Jun 2020 08:36:34 +0000"  >&lt;p&gt;Closing this as a duplicate of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11962&quot; title=&quot;File LSOM updates to store proper size via FLR for regular stat() usage&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11962&quot;&gt;LU-11962&lt;/a&gt;, which describes a way to have &quot;LSOM&quot; updates usable for regular &lt;tt&gt;stat()&lt;/tt&gt; operations.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="54867">LU-11962</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="53281">LU-11367</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="51920">LU-10934</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="54756">LU-11916</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|i004pz:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>