Re: Question on subvolumes and mount options

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

 



On Sun, Feb 13, 2011 at 05:46:46PM +0100, Yuri D'Elia wrote:
> Hi everyone, I'm experimenting with btrfs but I have some question
> regarding subvolumes.
> 
> First: In the / filesystem I create a subvolume named /home. As soon as
> the subvolume is created, I can already see the entry point in /home
> without having to mount it separately. Is that expected?

   Yes.

> Mounting the subvolume with mount -o subvol=home /dev/x /home also works
> as expected.
> 
> So, which is best? Looks like mounting subvolumes is not necessary.

   I would recommend putting nothing in the root of the filesystem
*except* subvolumes. i.e. create a "root" subvolume in / that contains
your root filesystem, and make that the default. Then you can mount
your btrfs root subvolume (i.e. the thing that contains all the other
subvolumes) somewhere like /media/btrfs-root, for purposes of managing
subvolumes.

> Is it possible to change mount options in a subvolume? Suppose I would
> like to use nodatasum except for /home, will the following work?
> 
> mount -o nodatasum /dev/x /
> btrfs subvolume create /home
> mount -o datasum,subvol=home /dev/x

   I'd expect that to work, although I haven't tried it myself.

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
             --- I always felt that as a C programmer, I ---             
                         was becoming typecast.                          

Attachment: signature.asc
Description: Digital signature


[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