Re: btrfs fi show

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris Murphy posted on Sat, 16 Nov 2013 14:50:00 -0700 as excerpted:

> On Nov 16, 2013, at 1:33 PM, Duncan <1i5t5.duncan@xxxxxxx> wrote:

>> 1) If you run a generic btrfs filesystem show (without options or
>> path), you *WILL* likely get the same base filesystem listed multiple
>> times, as the default lookup appears to get the info from at least two
>> different places, one appearing right away that only appears to include
>> currently mounted filesystems, then a pause, then a more complete
>> listing that includes currently unmounted btrfs volumes as well.
> 
> Thanks for the explanation. I'm still considering it a bug though.
> Duplicates of the same UUID should be filtered out.

Reasonable point, and I /guess/ (not being a coder) it shouldn't take 
much to do that directly in the btrfs filesystem show code itself.

> In my case, there's no pause. Two identical listings are instantly
> produced for one btrfs volume.

Probably because you just have that one volume, and it's mounted.

I have something like eleven separate btrfs filesystems, mostly two-
component-device raid1 mode btrfs, with some of them being primary 
backups of others and thus not mounted by default, and others being stuff 
like /boot and my packages tree, that are only mounted when I'm doing 
updates.

The mounted ones show up instantly (with dups in at least some cases), 
but then it pauses, presumably because it's scanning and then parsing 
devices and matching up components for each unmounted filesystem before 
displaying it.  But if you had no such unmounted btrfs and/or if they 
were only single device (I'm not sure which bit triggers the pause), 
you'll probably not see the pause I see here.

>> 3) If you use -d, you'll get a different list, based on devices in /dev
>> so it includes unmounted filesystems (and thus the pause), but at least
>> here, this list is BOTH comprehensive AND avoids dups!
> 
> This does show me a single instance of the singular volume I have.

=:^)

If they don't decide to do the filtering, perhaps the current -d can 
become the default.

-- 
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

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux