<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:12:45 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-7884] utils: mkfs prevents the creation of loopback files in /dev/shm</title>
                <link>https://jira.whamcloud.com/browse/LU-7884</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When using the llmount.sh script with TMP=/dev/shm it failed with:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Formatting mgs, mds, osts&lt;/li&gt;
	&lt;li&gt;Format mds1: /dev/shm/lustre-mdt1&lt;/li&gt;
	&lt;li&gt;mkfs.lustre: /dev/shm/lustre-mdt1 apparently does not exist&lt;br/&gt;
#&lt;/li&gt;
	&lt;li&gt;mkfs.lustre FATAL: unable to prepare backend (2)&lt;/li&gt;
	&lt;li&gt;mkfs.lustre: exiting with 2 (No such file or directory)&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;This is certainly related to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-1047&quot; title=&quot;Fix some error messages in mkfs.lustre to use strerror&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-1047&quot;&gt;&lt;del&gt;LU-1047&lt;/del&gt;&lt;/a&gt; (&quot;utils: mkfs shouldn&apos;t create loopback files in /dev&quot;)&lt;br/&gt;
This makes sense but it would be nice to declare /dev/shm as an exception.&lt;/p&gt;</description>
                <environment></environment>
        <key id="35409">LU-7884</key>
            <summary>utils: mkfs prevents the creation of loopback files in /dev/shm</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="hdoreau">Henri Doreau</assignee>
                                    <reporter username="cealustre">CEA</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Thu, 17 Mar 2016 13:33:07 +0000</created>
                <updated>Wed, 5 Aug 2020 13:50:24 +0000</updated>
                            <resolved>Wed, 7 Jun 2017 23:29:44 +0000</resolved>
                                                    <fixVersion>Lustre 2.10.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="145961" author="gerrit" created="Thu, 17 Mar 2016 15:22:00 +0000"  >&lt;p&gt;Quentin Bouget (quentin.bouget@gmail.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/18984&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/18984&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7884&quot; title=&quot;utils: mkfs prevents the creation of loopback files in /dev/shm&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7884&quot;&gt;&lt;del&gt;LU-7884&lt;/del&gt;&lt;/a&gt; utils: allow mkfs to create loopback files in /dev/shm&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 1212f31385bb6b5335d8ca760d2185def92ee1ca&lt;/p&gt;</comment>
                            <comment id="146126" author="fzago" created="Fri, 18 Mar 2016 16:41:36 +0000"  >&lt;p&gt;But why? /dev/shm is for shm_open, not temporary files.&lt;/p&gt;</comment>
                            <comment id="146298" author="hdoreau" created="Mon, 21 Mar 2016 12:05:26 +0000"  >&lt;p&gt;It is commonly used as such though. In this case, it is convenient to use it to setup fast and short-lived devices.&lt;br/&gt;
Additionally, we know that /dev/shm will always be mounted and always be tmpfs, unlike /tmp or custom tmpfs mounts.&lt;/p&gt;</comment>
                            <comment id="147352" author="fzago" created="Wed, 30 Mar 2016 16:41:16 +0000"  >&lt;p&gt;That makes sense, but that feels like a bandaid on top of another bandaid.&lt;/p&gt;</comment>
                            <comment id="150478" author="adilger" created="Thu, 28 Apr 2016 17:23:49 +0000"  >&lt;p&gt;Are there modern systems where /tmp is not tmpfs?  Alternately, it would be possible to just &lt;tt&gt;touch /dev/shm/lustre-mdt1&lt;/tt&gt; before calling mkfs.lustre so that the access() check succeeds.&lt;/p&gt;

&lt;p&gt;Out of curiosity, is the filesystem in /dev/shm for doing regression testing, or is this for a &quot;fast scratch&quot; workload?  For the latter, I&apos;ve sometimes wondered whether it would make sense to have a special &quot;osd-tmpfs&quot; that was much more efficient than storing an ldiskfs image inside tmpfs or ramdisk, since it could ignore all of the journaling, recovery, etc. overhead since the filesystem would disappear anyway if the node rebooted.&lt;/p&gt;</comment>
                            <comment id="150484" author="simmonsja" created="Thu, 28 Apr 2016 17:43:59 +0000"  >&lt;p&gt;Yes Andreas. My Ubuntu 16 system at home doesn&apos;t use tmpfs for /tmp. Now /dev/shm is a tmpfs.&lt;/p&gt;</comment>
                            <comment id="150547" author="hdoreau" created="Fri, 29 Apr 2016 07:10:52 +0000"  >&lt;p&gt;Indeed we can touch the devices before running the tests, but the purpose of the patch is to simplify the procedure so that we don&apos;t have to do it.&lt;br/&gt;
We use it for regression testing.&lt;/p&gt;</comment>
                            <comment id="150602" author="adilger" created="Fri, 29 Apr 2016 17:23:01 +0000"  >&lt;p&gt;If this is used for regression testing only, then it is fine to add something to test-framework.sh or other testing scripts to touch the file in /dev/shm before trying to use it so that mkfs.lustre is happy.  I don&apos;t like mkfs.lustre to automatically create files that do not already exist, since this can be confusing to users that don&apos;t know what they are doing.&lt;/p&gt;</comment>
                            <comment id="198527" author="gerrit" created="Wed, 7 Jun 2017 20:31:16 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/18984/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/18984/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7884&quot; title=&quot;utils: mkfs prevents the creation of loopback files in /dev/shm&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7884&quot;&gt;&lt;del&gt;LU-7884&lt;/del&gt;&lt;/a&gt; utils: mkfs prevents the creation of files in /dev/shm&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: d9c146f670ab433632d6d7536592a4240de616a4&lt;/p&gt;</comment>
                            <comment id="198572" author="pjones" created="Wed, 7 Jun 2017 23:29:44 +0000"  >&lt;p&gt;Landed for 2.10&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="47482">LU-9792</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_10490" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>End date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 29 Apr 2016 13:33:07 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzy4q7:</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>
                                                                                                                        <customfield id="customfield_10493" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>Start date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 17 Mar 2016 13:33:07 +0000</customfieldvalue>

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