<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:49:17 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-12056] tar doesn&apos;t support project id</title>
                <link>https://jira.whamcloud.com/browse/LU-12056</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;tar is not able to keep project id and  it won&apos;t work for file backup/restart with project id.&lt;br/&gt;
This is not only lustre problem, but also same problem in ldiskfs. If MDT needs to be migration from old MDT to new MDT, tar discards project id.&lt;br/&gt;
There was discussion on &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4017&quot; title=&quot;Add project quota support feature&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4017&quot;&gt;&lt;del&gt;LU-4017&lt;/del&gt;&lt;/a&gt;, I think we need to address this problem.&lt;/p&gt;</description>
                <environment>master</environment>
        <key id="55103">LU-12056</key>
            <summary>tar doesn&apos;t support project id</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="dongyang">Dongyang Li</assignee>
                                    <reporter username="sihara">Shuichi Ihara</reporter>
                        <labels>
                            <label>ldiskfs</label>
                    </labels>
                <created>Sun, 10 Mar 2019 17:06:07 +0000</created>
                <updated>Mon, 5 Dec 2022 21:26:08 +0000</updated>
                            <resolved>Thu, 6 Jan 2022 23:05:23 +0000</resolved>
                                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="243606" author="adilger" created="Sun, 10 Mar 2019 18:29:09 +0000"  >&lt;p&gt;Probably it makes sense for Shilong to raise this issue on linux-fsdevel and bug-tar mailing lists to see if there is a preferred solution to saving/restoring the projid. I think that since the ioctl() interface is existingfor all filesystems using projid that it makes sense for tar to use this interface, but it would mean we need to patch tar until it is accepted into upstream versions/distros.&lt;/p&gt;

&lt;p&gt;Providing an xattr to get/set the projid would be more compatible with other tools (even symlinks, I think), but it would mean changes to all filesystems using projid. &lt;/p&gt;</comment>
                            <comment id="243621" author="wshilong" created="Mon, 11 Mar 2019 06:27:28 +0000"  >&lt;p&gt;Currently, I think solution might be to use get ioctl to grab project of directories and files and to use&lt;br/&gt;
set ioctl to set it, this won&apos;t work for symlink files until project ID for symlink files support landed.&lt;/p&gt;

&lt;p&gt;I would think it makes more sense to add complete support to tar after symlink files support land too.&lt;/p&gt;</comment>
                            <comment id="285747" author="adilger" created="Sat, 21 Nov 2020 10:00:00 +0000"  >&lt;p&gt;I think it would be relatively straight forward to expose a &lt;b&gt;virtual&lt;/b&gt; xattr &lt;tt&gt;trusted.projid&lt;/tt&gt; that returns only the ASCII-formatted projid value from &lt;tt&gt;i_projid&lt;/tt&gt; in the inode, or nothing if it is zero. When written, it will convert the ASCII number to binary and store it in &lt;tt&gt;i_projid&lt;/tt&gt; in the inode, similar to what &lt;tt&gt;FS_IOC_FSGETXATTR&lt;/tt&gt; does.&lt;/p&gt;

&lt;p&gt;This would immediately work with all backup tools, and would not need much code in ldiskfs, and would likely be accepted upstream as well.&lt;/p&gt;

&lt;p&gt;It may also make sense to expose the inode flags via &lt;tt&gt;trusted.attrflags&lt;/tt&gt; so that they are reliably backed up and restored as well. &lt;/p&gt;</comment>
                            <comment id="285842" author="wshilong" created="Tue, 24 Nov 2020 01:40:14 +0000"  >&lt;p&gt;Yup, acutally, i&apos;ve made this similar idea patch long time ago, but not push it out.&lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="318816" author="adilger" created="Sun, 21 Nov 2021 07:04:41 +0000"  >&lt;p&gt;Shilong, you mentioned here that you have a patch that presents the projid as a virtual xattr to userspace.  Do you still have that patch?&lt;/p&gt;</comment>
                            <comment id="319052" author="adilger" created="Tue, 23 Nov 2021 23:57:44 +0000"  >&lt;p&gt;Hi Dongyang,&lt;br/&gt;
could you please look into an &lt;b&gt;ldiskfs&lt;/b&gt; patch to expose the projid as a virtual &lt;tt&gt;trusted.projid&lt;/tt&gt; that contains the ASCII project ID, so that normal tools like tar and rsync can backup and restore it.  The use of &lt;tt&gt;trusted&lt;/tt&gt; should limit this access to the root user, which is fine for us, and avoids the issue of non-root users using &lt;tt&gt;setfattr&lt;/tt&gt; to set the projid on a file.&lt;/p&gt;

&lt;p&gt;If ldiskfs is exposing the &lt;tt&gt;trusted.projid&lt;/tt&gt; xattr in the xattr list, then this should also be visible to root at the client without any need for changes.&lt;/p&gt;</comment>
                            <comment id="319440" author="gerrit" created="Tue, 30 Nov 2021 01:26:18 +0000"  >&lt;p&gt;&quot;Li Dongyang &amp;lt;dongyangli@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/45679&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45679&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12056&quot; title=&quot;tar doesn&amp;#39;t support project id&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12056&quot;&gt;&lt;del&gt;LU-12056&lt;/del&gt;&lt;/a&gt; ldiskfs: add trusted.projid virtual xattr&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 34a9711a083a0d8a311b7caf2aaf444568eb6f83&lt;/p&gt;</comment>
                            <comment id="321936" author="gerrit" created="Thu, 6 Jan 2022 21:59:09 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/45679/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45679/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12056&quot; title=&quot;tar doesn&amp;#39;t support project id&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12056&quot;&gt;&lt;del&gt;LU-12056&lt;/del&gt;&lt;/a&gt; ldiskfs: add trusted.projid virtual xattr&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 665383d3a1f4d1dc7f404301039432271ad85eaf&lt;/p&gt;</comment>
                            <comment id="321977" author="pjones" created="Thu, 6 Jan 2022 23:05:23 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                            <comment id="323759" author="gerrit" created="Tue, 25 Jan 2022 02:17:44 +0000"  >&lt;p&gt;&quot;Li Dongyang &amp;lt;dongyangli@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/46295&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46295&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12056&quot; title=&quot;tar doesn&amp;#39;t support project id&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12056&quot;&gt;&lt;del&gt;LU-12056&lt;/del&gt;&lt;/a&gt; ldiskfs: add ext4-projid-xattrs.patch for Linux 5.10&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 4086dcc2cd0757b3738cf32972020c6a54f1486d&lt;/p&gt;</comment>
                            <comment id="324503" author="gerrit" created="Mon, 31 Jan 2022 01:24:46 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/46295/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46295/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12056&quot; title=&quot;tar doesn&amp;#39;t support project id&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12056&quot;&gt;&lt;del&gt;LU-12056&lt;/del&gt;&lt;/a&gt; ldiskfs: add ext4-projid-xattrs.patch for Linux 5.10&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 46a28ae19f38f8959986dcce2b331ac7e48886fc&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="21158">LU-4017</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="54597">LU-11872</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="56210">LU-12480</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="58288">LU-13335</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="67631">LU-15372</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|i00czj:</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>