You are not logged in.

#1 2016-11-15 11:44:31

John_GSGT
Member
Registered: 2016-11-15
Posts: 5

btrfs: not working several mount options

Hello! I'm using archlinux (latest 11/15/16), and when i mount partition:
mount /dev/sda2 /mnt -o compress-force=zlib,nodatacow,ssd,discard
but mount shows:
-mount:
-/dev/sda2 on /mnt type btrfs (rw,relatime,nodatasum,nodatacow,ssd,discard,space_cache,subvolid=5,subvol=/)
but compress don't shows
and if remove one parameter then works:
mount /dev/sda2 /mnt -o compress-force=zlib,ssd,discard
-mount:
-/dev/sda2 on /mnt type btrfs (rw,relatime,compress-force=zlib,ssd,discard,space_cache,subvolid=5,subvol=/)
and dmesg show what all works normally: (mount /dev/sda2 /mnt -o compress-force=zlib,nodatacow,ssd,discard)
[ 1358.825523] BTRFS info (device sda2): force zlib compression
[ 1358.825531] BTRFS info (device sda2): setting nodatacow
[ 1358.825536] BTRFS info (device sda2): use ssd allocation scheme
[ 1358.825541] BTRFS info (device sda2): turning on discard
[ 1358.825545] BTRFS info (device sda2): disk space caching is enabled
[ 1358.825547] BTRFS info (device sda2): has skinny extents
Help please!

Offline

#2 2016-11-15 17:14:59

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: btrfs: not working several mount options

Are you trying to mount more than one subvolume with different options?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2016-11-15 23:32:09

John_GSGT
Member
Registered: 2016-11-15
Posts: 5

Re: btrfs: not working several mount options

No, i don't use subvolumes

Offline

#4 2016-11-16 07:41:48

John_GSGT
Member
Registered: 2016-11-15
Posts: 5

Re: btrfs: not working several mount options

Tested on Debian Stretch - some problem...

Offline

#5 2016-11-16 08:21:29

John_GSGT
Member
Registered: 2016-11-15
Posts: 5

Re: btrfs: not working several mount options

Attention! Debian 8.5 isn't have this bug!

Offline

#6 2016-11-17 00:40:49

Marcel-
Member
From: Utrecht, NL
Registered: 2006-12-03
Posts: 266

Re: btrfs: not working several mount options

You cannot use compress and nodatacow at the same time.

The Wiki clearly states:

nodatacow
Do not copy-on-write data for newly created files, existing files are unaffected. This also turns off checksumming! IOW, nodatacow implies nodatasum. datacow is used to ensure the user either has access to the old version of a file, or to the newer version of the file. datacow makes sure we never have partially updated files written to disk. nodatacow gives slight performance boost by directly overwriting data (like ext[234]), at the expense of potentially getting partially updated files on system failures. Performance gain is usually < 5% unless the workload is random writes to large database files, where the difference can become very large. NOTE: switches off compression !

Offline

#7 2016-11-26 01:57:18

John_GSGT
Member
Registered: 2016-11-15
Posts: 5

Re: btrfs: not working several mount options

thanks!!!

Offline

Board footer

Powered by FluxBB