linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mount options ignored / unclear
@ 2014-04-11  9:21 Swâmi Petaramesh
  2014-04-12  4:42 ` Duncan
  0 siblings, 1 reply; 3+ messages in thread
From: Swâmi Petaramesh @ 2014-04-11  9:21 UTC (permalink / raw)
  To: linux-btrfs

Hello,

(Still in my quest for BTRFS performance)

It is extremely unclear which BTRFS mount options are "filesystem wide" and 
will apply to each and every mountpoint in the BTRFS filesystem, and which 
options can be set per subvolume or per mountpoint.

As far as I can tell, there is no reliable documentation about this, is there 
any ?

(Kernel is 3.13, Fedora)


i.e. I have in fstab :

/dev/sda3 / btrfs subvol=FEDORA,noatime,compress=lzo,autodefrag

...So without suprise I get in /proc/self/mountinfo:

36 1 0:32 /FEDORA / rw,noatime shared:1 - btrfs /dev/sda3 
rw,seclabel,compress=lzo,space_cache,autodefrag


...But then I have in fstab:

/dev/sda3 /home/me/.cache  btrfs   
subvol=/NOCOW/me/.cache,nodatacow,compress=no,noatime

So it is with great suprise the I get in /proc/self/mountinfo:

49 47 0:32 /NOCOW/me/.cache /home/me/.cache rw,noatime shared:33 - btrfs 
/dev/sda3 rw,seclabel,compress=lzo,space_cache,autodefrag


...I'm not suprised to see "space_cache" which I would assume to be FS-wide, 
but what the hell does "autodefrag" do in there, or even worse "compress=lzo", 
where "compress=no" has been exlicitely specified in fstab ?

That's a bug, as far as I can tell.

Kind regards.

-- 
Swâmi Petaramesh <swami@petaramesh.org> http://petaramesh.org PGP 9076E32E


^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: mount options ignored / unclear
@ 2014-04-12 20:05 Chris Murphy
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Murphy @ 2014-04-12 20:05 UTC (permalink / raw)
  To: Btrfs BTRFS

Best as I can tell, the file system independent mount options can be done per subvolume; while the file system specific mount options apply file system wide, i.e. the options use to mount the first instance of the file system are the ones used for subsequent mounts. To change them requires use of -o remount in which case all mounted subvolume inherit the new mount options.


Chris Murphy

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-12 20:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-11  9:21 mount options ignored / unclear Swâmi Petaramesh
2014-04-12  4:42 ` Duncan
  -- strict thread matches above, loose matches on Subject: below --
2014-04-12 20:05 Chris Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).