<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:11:19 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-7718] lfs getstripe does not work on bind mount</title>
                <link>https://jira.whamcloud.com/browse/LU-7718</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Found that lfs getstripe on lustre bind mount fails to return the attributes. &lt;/p&gt;

&lt;p&gt;Here are the steps to reproduce the problem. &lt;/p&gt;

&lt;p&gt;/mnt/lustre is lustre mount point&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;mkdir /mnt/lustre/dir&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;mount --bind /mnt/lustre /home/bind/&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;ls /home/bind/&lt;br/&gt;
dir&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;lfs getstripe /home/bind//dir/&lt;br/&gt;
/home/bind//dir/&lt;br/&gt;
can&apos;t find fs root for &apos;/home/bind/dir&apos;: -19&lt;br/&gt;
Cannot determine default stripe count.: No such device (19)&lt;br/&gt;
can&apos;t find fs root for &apos;/home/bind/dir&apos;: -19&lt;br/&gt;
Cannot determine default stripe size.: No such device (19)&lt;br/&gt;
stripe_count:    stripe_size:     stripe_offset:  -1&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="34335">LU-7718</key>
            <summary>lfs getstripe does not work on bind mount</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="wc-triage">WC Triage</assignee>
                                    <reporter username="vinayakh">Vinayak</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Thu, 28 Jan 2016 07:23:19 +0000</created>
                <updated>Fri, 13 May 2016 06:58:36 +0000</updated>
                            <resolved>Mon, 14 Mar 2016 04:37:57 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                                    <fixVersion>Lustre 2.9.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="140313" author="gerrit" created="Thu, 28 Jan 2016 08:12:44 +0000"  >&lt;p&gt;Vinayak (vinayakswami.hariharmath@seagate.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/18195&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/18195&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7718&quot; title=&quot;lfs getstripe does not work on bind mount&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7718&quot;&gt;&lt;del&gt;LU-7718&lt;/del&gt;&lt;/a&gt; utils: lfs getstripe does not work on bind mount&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: f9338774a5afc5689b62fc5dc1151a8db8e805af&lt;/p&gt;</comment>
                            <comment id="140317" author="vinayakh" created="Thu, 28 Jan 2016 08:20:44 +0000"  >&lt;p&gt;This behavior is observed because of &lt;b&gt;get_root_path()&lt;/b&gt; in which mount point details are obtained going through &lt;b&gt;/etc/mtab&lt;/b&gt; which does not list original mount type and fsname (lustre in this case) of bind mount point. &lt;br/&gt;
i.e&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;# cat /etc/mtab 
/dev/mapper/VolGroup-lv_root / ext4 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/sda1 /boot ext4 rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
gvfs-fuse-daemon /root/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
/home/build/upstream/lustre-release/lustre/utils/mount.lustre /sbin/mount.lustre none rw,bind 0 0
/dev/loop0 /mnt/mds1 lustre rw,loop=/dev/loop0 0 0
/dev/loop1 /mnt/ost1 lustre rw,loop=/dev/loop1 0 0
/dev/loop2 /mnt/ost2 lustre rw,loop=/dev/loop2 0 0
cli-4@tcp:/lustre /mnt/lustre lustre rw,user_xattr,flock 0 0          =============&amp;gt; lustre mount
/mnt/lustre /home/bind none rw,bind 0 0                                    =============&amp;gt; lustre bind mount not showing original mount info

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;b&gt;/proc/mounts&lt;/b&gt; is useful in this case&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;# cat /proc/mounts 
rootfs / rootfs rw 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
devtmpfs /dev devtmpfs rw,relatime,size=1337872k,nr_inodes=334468,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/mapper/VolGroup-lv_root / ext4 rw,relatime,barrier=1,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/sda1 /boot ext4 rw,relatime,barrier=1,data=ordered 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
cgroup /cgroup/cpuset cgroup rw,relatime,cpuset 0 0
cgroup /cgroup/cpu cgroup rw,relatime,cpu 0 0
cgroup /cgroup/cpuacct cgroup rw,relatime,cpuacct 0 0
cgroup /cgroup/memory cgroup rw,relatime,memory 0 0
cgroup /cgroup/devices cgroup rw,relatime,devices 0 0
cgroup /cgroup/freezer cgroup rw,relatime,freezer 0 0
cgroup /cgroup/net_cls cgroup rw,relatime,net_cls 0 0
cgroup /cgroup/blkio cgroup rw,relatime,blkio 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1625,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1625,timeout=300,minproto=5,maxproto=5,indirect 0 0
gvfs-fuse-daemon /root/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=0,group_id=0 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/dev/mapper/VolGroup-lv_root /sbin/mount.lustre ext4 rw,relatime,barrier=1,data=ordered 0 0
/dev/loop0 /mnt/mds1 lustre ro 0 0
/dev/loop1 /mnt/ost1 lustre ro 0 0
/dev/loop2 /mnt/ost2 lustre ro 0 0
192.168.56.104@tcp:/lustre /mnt/lustre lustre rw,flock,user_xattr 0 0   ===============&amp;gt; lustre mount 
192.168.56.104@tcp:/lustre /home/bind lustre rw,flock,user_xattr 0 0  ===============&amp;gt; lustre bind mount 

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Patch for this fix can be tracked at &lt;a href=&quot;http://review.whamcloud.com/#/c/18195/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/18195/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="145356" author="gerrit" created="Mon, 14 Mar 2016 02:39:28 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/18195/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/18195/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7718&quot; title=&quot;lfs getstripe does not work on bind mount&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7718&quot;&gt;&lt;del&gt;LU-7718&lt;/del&gt;&lt;/a&gt; utils: lfs getstripe does not work on bind mount&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 7e41081c512afcb883582e9d9c24cd04e77d0b27&lt;/p&gt;</comment>
                    </comments>
                    <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_10030" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic/Theme</customfieldname>
                        <customfieldvalues>
                                        <label>patch</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzxzl3:</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>