Re: mount command now shows subvol and subvolid

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

 



On Tue, Sep 01, 2015 at 07:17:53AM +0000, Duncan wrote:
> David Sterba posted on Mon, 31 Aug 2015 15:45:17 +0200 as excerpted:
> 
> > On Sun, Aug 30, 2015 at 11:17:44AM -0600, Chris Murphy wrote:
> >> Does anyone know when this changed? Maybe it's a 4.2 thing... anyway
> >> it's very much welcome!
> > 
> > And another "side effect" is that /proc/self/mountinfo will report the
> > mounted subvolume, even if it was an implicit mount of non-toplevel
> > subvolume.
> 
> Another very nice side effect, likely accidental, but still very nice... 
> is how subvol= ends up being reported for bind-mounts.
> 
> I don't use subvolumes here, but I do use multiple separate btrfs, so 
> subvolid=5, subvol=/ for all of them, would be technically correct, if 
> not particularly useful.  But while the subvolid=5 is indeed constant 
> (and actually useful given the following), subvol= turns out to be rather 
> more helpful than the / that would normally be expected.
> 
> I have a number of bind-mounts.  Formerly mount's output for these wasn't 
> particularly helpful, since I ended up with a number of...
> 
> /dev/sda5 on <mountpoint> ...

 Try findmnt(8) rather than mount(8).

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
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