<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:21: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-8846] lfs_migrate() should try to unlink volatile file</title>
                <link>https://jira.whamcloud.com/browse/LU-8846</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;&lt;tt&gt;lfs_migrate()&lt;/tt&gt; bypasses &lt;tt&gt;llapi_create_volatile_idx()&lt;/tt&gt; and creates a volatile file directly. (It does this because it needs to create the volatile file with a specific striping and &lt;tt&gt;llapi_create_volatile_idx()&lt;/tt&gt; does not allow us to pass in striping.) It should do as &lt;tt&gt;llapi_create_volatile_idx()&lt;/tt&gt; does and try to unlink the volatile file after opening it (in case volatile file creation is not supported).&lt;/p&gt;

&lt;p&gt;Or we could add &lt;tt&gt;O_LOV_DELAY_CREATE&lt;/tt&gt; to the open flags and use &lt;tt&gt;llapi_create_volatile_idx()&lt;/tt&gt; but then we would need a function to apply the striping described by a &lt;tt&gt;struct llapi_stripe_param&lt;/tt&gt; to an open file handle.&lt;/p&gt;</description>
                <environment></environment>
        <key id="41650">LU-8846</key>
            <summary>lfs_migrate() should try to unlink volatile file</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="1">Fixed</resolution>
                                        <assignee username="jhammond">John Hammond</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>lfs</label>
                    </labels>
                <created>Thu, 17 Nov 2016 15:08:40 +0000</created>
                <updated>Sat, 17 Dec 2016 15:19:56 +0000</updated>
                            <resolved>Sat, 17 Dec 2016 15:19:56 +0000</resolved>
                                                    <fixVersion>Lustre 2.10.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="174089" author="gerrit" created="Thu, 17 Nov 2016 17:34:13 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/23842&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/23842&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8846&quot; title=&quot;lfs_migrate() should try to unlink volatile file&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8846&quot;&gt;&lt;del&gt;LU-8846&lt;/del&gt;&lt;/a&gt; lfs: try to unlink volatile file in lfs_migrate()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 222f9b93d7675a53d0b3d5d5e047ffb9f3f50dca&lt;/p&gt;</comment>
                            <comment id="174098" author="rread" created="Thu, 17 Nov 2016 17:55:44 +0000"  >&lt;p&gt;I&apos;m curious, what is the situation where volatile files are not supported and we&apos;re doing lfs migrate? &lt;/p&gt;</comment>
                            <comment id="174105" author="adilger" created="Thu, 17 Nov 2016 18:49:02 +0000"  >&lt;p&gt;Robert, I think John is saying that it isn&apos;t possible to specify the file layout when creating a volatile file, so that it can&apos;t be used when restriping a file during migration. &lt;/p&gt;

&lt;p&gt;I&apos;m thinking it makes sense to create a new API to allow specifying the layout for a volatile file.  Probably passing O_LOV_DELAY_CREATE and setting the layout explicitly (within the same llapi_create_volatile_layout() function) would be most straight forward. &lt;/p&gt;

&lt;p&gt;I don&apos;t think the current patch is wrong, however, since it shouldn&apos;t leave files around if the volatile file create API isn&apos;t available.  &lt;/p&gt;</comment>
                            <comment id="174112" author="rread" created="Thu, 17 Nov 2016 20:07:45 +0000"  >&lt;p&gt;The existing API already allows passing  O_LOV_DELAY_CREATE), and the copytool uses this so it can set striping on the volatile file. &lt;/p&gt;

&lt;p&gt;But my question was based on the patch comment: &quot;In lfs_migrate() try to unlink the volatile file in case the MDT does not support volatile file creation.&quot;&lt;/p&gt;</comment>
                            <comment id="174113" author="jhammond" created="Thu, 17 Nov 2016 20:14:26 +0000"  >&lt;p&gt;It&apos;s also totally conceivable that upstream reviewers will notice volatile file handling and decide that it&apos;s a security issue or something.&lt;/p&gt;</comment>
                            <comment id="174125" author="rread" created="Thu, 17 Nov 2016 21:01:00 +0000"  >&lt;p&gt;Ah, that&apos;s a good point. &lt;/p&gt;</comment>
                            <comment id="178226" author="gerrit" created="Sat, 17 Dec 2016 05:48:42 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/23842/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/23842/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8846&quot; title=&quot;lfs_migrate() should try to unlink volatile file&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8846&quot;&gt;&lt;del&gt;LU-8846&lt;/del&gt;&lt;/a&gt; lfs: try to unlink volatile file in lfs_migrate()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: d15fbc4fd9fbf5b892ea4320771ad40963bfdc69&lt;/p&gt;</comment>
                            <comment id="178282" author="pjones" created="Sat, 17 Dec 2016 15:19:56 +0000"  >&lt;p&gt;Landed for 2.10&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="39167">LU-8559</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|hzyvz3:</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>