* btrfs filesystem show confused when label is same as mountpoint
2015-06-12 13:16 [survey] BTRFS_IOC_DEVICES_READY return status Anand Jain
@ 2015-06-13 7:20 ` Sjoerd
2015-06-13 9:51 ` Duncan
0 siblings, 1 reply; 5+ messages in thread
From: Sjoerd @ 2015-06-13 7:20 UTC (permalink / raw)
To: BTRFS
Hi,
I've a btrfs partition with label 'MULTIMEDIA' (all capitals) and mounted it
on /data/Multimedia (only M capital) and see the following when doing a btrfs
fi show:
for mountpoint:
btrfs fi show /data/Multimedia
Btrfs v3.17
versus for label:
btrfs fi show MULTIMEDIA
Label: 'MULTIMEDIA' uuid: ce5d23cd-73a4-4f7c-83cd-2c40d12f6697
Total devices 4 FS bytes used 5.04TiB
devid 1 size 1.48TiB used 1.26TiB path /dev/sda2
devid 2 size 1.48TiB used 1.26TiB path /dev/sdc2
devid 3 size 1.48TiB used 1.26TiB path /dev/sdd2
devid 4 size 1.48TiB used 1.26TiB path /dev/sde2
So in the latter case I get the results I was looking for.
It's not realy a question, but I couldn't find anything on the bugtracker (if
it's a bug in the first place) or a known something, so just to let you
know,cause I took me awhile to figure out why I didn't get results for this
particular mountpoint, while for others I did ;)
Cheers,
Sjoerd
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: btrfs filesystem show confused when label is same as mountpoint
@ 2015-06-13 9:50 Anand Jain
2015-06-13 15:01 ` Sjoerd
0 siblings, 1 reply; 5+ messages in thread
From: Anand Jain @ 2015-06-13 9:50 UTC (permalink / raw)
To: Sjoerd; +Cc: BTRFS
I don't see that in 4.0, could you upgrade/try. thanks
---------------
mount /dev/sdf /data/Multimedia
btrfs fi show /data/Multimedia
Label: 'MULTIMEDIA' uuid: 9b49bcc9-66d9-4f76-a57a-a60e2a16f15d
Total devices 1 FS bytes used 192.00KiB
devid 1 size 2.90GiB used 333.12MiB path /dev/sdf
btrfs-progs v4.0.1-2-ge8ceb61
btrfs fi show MULTIMEDIA
Label: 'MULTIMEDIA' uuid: 9b49bcc9-66d9-4f76-a57a-a60e2a16f15d
Total devices 1 FS bytes used 192.00KiB
devid 1 size 2.90GiB used 333.12MiB path /dev/sdf
btrfs-progs v4.0.1-2-ge8ceb61
---------------
Anand
On 06/13/2015 03:20 PM, Sjoerd wrote:> Hi,
>
> I've a btrfs partition with label 'MULTIMEDIA' (all capitals) and
mounted it
> on /data/Multimedia (only M capital) and see the following when doing
a btrfs
> fi show:
>
> for mountpoint:
> btrfs fi show /data/Multimedia
> Btrfs v3.17
>
> versus for label:
> btrfs fi show MULTIMEDIA
> Label: 'MULTIMEDIA' uuid: ce5d23cd-73a4-4f7c-83cd-2c40d12f6697
> Total devices 4 FS bytes used 5.04TiB
> devid 1 size 1.48TiB used 1.26TiB path /dev/sda2
> devid 2 size 1.48TiB used 1.26TiB path /dev/sdc2
> devid 3 size 1.48TiB used 1.26TiB path /dev/sdd2
> devid 4 size 1.48TiB used 1.26TiB path /dev/sde2
>
>
> So in the latter case I get the results I was looking for.
>
>
> It's not realy a question, but I couldn't find anything on the
bugtracker (if
> it's a bug in the first place) or a known something, so just to let you
> know,cause I took me awhile to figure out why I didn't get results
for this
> particular mountpoint, while for others I did ;)
>
> Cheers,
> Sjoerd
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: btrfs filesystem show confused when label is same as mountpoint
2015-06-13 7:20 ` btrfs filesystem show confused when label is same as mountpoint Sjoerd
@ 2015-06-13 9:51 ` Duncan
2015-06-25 16:37 ` David Sterba
0 siblings, 1 reply; 5+ messages in thread
From: Duncan @ 2015-06-13 9:51 UTC (permalink / raw)
To: linux-btrfs
Sjoerd posted on Sat, 13 Jun 2015 09:20:12 +0200 as excerpted:
> versus for label:
> btrfs fi show MULTIMEDIA
> Label: 'MULTIMEDIA' uuid: ce5d23cd-73a4-4f7c-83cd-2c40d12f6697
Hmm... I wasn't even aware that you could /use/ label! But sure enough,
it works here, too:
btrfs fi show rt0238gcnx+35l0
Label: 'rt0238gcnx+35l0' uuid: 8f8d79ef-a86f-4306-a255-e0519e0f6132
Total devices 2 FS bytes used 1.94GiB
devid 1 size 8.00GiB used 3.78GiB path /dev/sda5
devid 2 size 8.00GiB used 3.78GiB path /dev/sdb5
btrfs-progs v4.0.1
It works for UUID as well...
btrfs fi show 8f8d79ef-a86f-4306-a255-e0519e0f6132
Label: 'rt0238gcnx+35l0' uuid: 8f8d79ef-a86f-4306-a255-e0519e0f6132
Total devices 2 FS bytes used 1.94GiB
devid 1 size 8.00GiB used 3.78GiB path /dev/sda5
devid 2 size 8.00GiB used 3.78GiB path /dev/sdb5
btrfs-progs v4.0.1
... but that's a lot of arbitrary typing.
Doesn't work with partlabel or id (see /dev/disk/by-*), however. =:^(
Anyway, thanks! Learned something new about btrfs fi show, today! =:^)
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: btrfs filesystem show confused when label is same as mountpoint
2015-06-13 9:50 btrfs filesystem show confused when label is same as mountpoint Anand Jain
@ 2015-06-13 15:01 ` Sjoerd
0 siblings, 0 replies; 5+ messages in thread
From: Sjoerd @ 2015-06-13 15:01 UTC (permalink / raw)
To: BTRFS
On Saturday 13 June 2015 17:50:05 Anand Jain wrote:
> I don't see that in 4.0, could you upgrade/try. thanks
>
That works fine indeed! Thanks....Could have thought to try that first myself ;)
> ---------------
> mount /dev/sdf /data/Multimedia
>
> btrfs fi show /data/Multimedia
> Label: 'MULTIMEDIA' uuid: 9b49bcc9-66d9-4f76-a57a-a60e2a16f15d
> Total devices 1 FS bytes used 192.00KiB
> devid 1 size 2.90GiB used 333.12MiB path /dev/sdf
>
> btrfs-progs v4.0.1-2-ge8ceb61
>
> btrfs fi show MULTIMEDIA
> Label: 'MULTIMEDIA' uuid: 9b49bcc9-66d9-4f76-a57a-a60e2a16f15d
> Total devices 1 FS bytes used 192.00KiB
> devid 1 size 2.90GiB used 333.12MiB path /dev/sdf
>
> btrfs-progs v4.0.1-2-ge8ceb61
> ---------------
>
> Anand
>
>
> On 06/13/2015 03:20 PM, Sjoerd wrote:> Hi,
>
> > I've a btrfs partition with label 'MULTIMEDIA' (all capitals) and
>
> mounted it
>
> > on /data/Multimedia (only M capital) and see the following when doing
>
> a btrfs
>
> > fi show:
> >
> > for mountpoint:
> > btrfs fi show /data/Multimedia
> > Btrfs v3.17
> >
> > versus for label:
> > btrfs fi show MULTIMEDIA
> > Label: 'MULTIMEDIA' uuid: ce5d23cd-73a4-4f7c-83cd-2c40d12f6697
> >
> > Total devices 4 FS bytes used 5.04TiB
> > devid 1 size 1.48TiB used 1.26TiB path /dev/sda2
> > devid 2 size 1.48TiB used 1.26TiB path /dev/sdc2
> > devid 3 size 1.48TiB used 1.26TiB path /dev/sdd2
> > devid 4 size 1.48TiB used 1.26TiB path /dev/sde2
> >
> > So in the latter case I get the results I was looking for.
> >
> >
> > It's not realy a question, but I couldn't find anything on the
>
> bugtracker (if
>
> > it's a bug in the first place) or a known something, so just to let you
> > know,cause I took me awhile to figure out why I didn't get results
>
> for this
>
> > particular mountpoint, while for others I did ;)
> >
> > Cheers,
> > Sjoerd
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: btrfs filesystem show confused when label is same as mountpoint
2015-06-13 9:51 ` Duncan
@ 2015-06-25 16:37 ` David Sterba
0 siblings, 0 replies; 5+ messages in thread
From: David Sterba @ 2015-06-25 16:37 UTC (permalink / raw)
To: Duncan; +Cc: linux-btrfs
On Sat, Jun 13, 2015 at 09:51:41AM +0000, Duncan wrote:
> Sjoerd posted on Sat, 13 Jun 2015 09:20:12 +0200 as excerpted:
>
> > versus for label:
> > btrfs fi show MULTIMEDIA
> > Label: 'MULTIMEDIA' uuid: ce5d23cd-73a4-4f7c-83cd-2c40d12f6697
>
> Hmm... I wasn't even aware that you could /use/ label! But sure enough,
> it works here, too:
>
> btrfs fi show rt0238gcnx+35l0
> Label: 'rt0238gcnx+35l0' uuid: 8f8d79ef-a86f-4306-a255-e0519e0f6132
> Total devices 2 FS bytes used 1.94GiB
> devid 1 size 8.00GiB used 3.78GiB path /dev/sda5
> devid 2 size 8.00GiB used 3.78GiB path /dev/sdb5
>
> btrfs-progs v4.0.1
>
>
> It works for UUID as well...
>
> btrfs fi show 8f8d79ef-a86f-4306-a255-e0519e0f6132
> Label: 'rt0238gcnx+35l0' uuid: 8f8d79ef-a86f-4306-a255-e0519e0f6132
> Total devices 2 FS bytes used 1.94GiB
> devid 1 size 8.00GiB used 3.78GiB path /dev/sda5
> devid 2 size 8.00GiB used 3.78GiB path /dev/sdb5
>
> btrfs-progs v4.0.1
>
> ... but that's a lot of arbitrary typing.
>
> Doesn't work with partlabel or id (see /dev/disk/by-*), however. =:^(
The commandline tries to guess if it's label/uuid/path. If we want to
add support for partlabel and/or partuuid, we can't use the bare string,
but possibly the blkid tags, like
$ btrfs fi show PARTUUID="8f8d79ef-a86f-4306-a255-e0519e0f6132"
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-06-25 16:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-13 9:50 btrfs filesystem show confused when label is same as mountpoint Anand Jain
2015-06-13 15:01 ` Sjoerd
-- strict thread matches above, loose matches on Subject: below --
2015-06-12 13:16 [survey] BTRFS_IOC_DEVICES_READY return status Anand Jain
2015-06-13 7:20 ` btrfs filesystem show confused when label is same as mountpoint Sjoerd
2015-06-13 9:51 ` Duncan
2015-06-25 16:37 ` David Sterba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox