Re: [PATCH] Btrfs: add "nocompress" mount option
From: David Sterba <hidden>
Date: 2012-06-18 12:21:47
From: David Sterba <hidden>
Date: 2012-06-18 12:21:47
On Fri, Jun 15, 2012 at 06:56:35PM +0200, Goffredo Baroncelli wrote:
On 06/15/2012 12:50 PM, David Sterba wrote:quoted
I prefer this over adding an extra option to disable. This way there's no confusion if the compression is on or off. mount -o compress,nocompress /dev /mntThe confusion still exists if an user does: mount -o compress,compress=no /dev /mnt
Ah right. The precedence is simply given by order on the options line, and this is same in case of 'nocompress'.
However I prefer the form "compress=" because already exists the option "compress=lzo|zlib".
My comment about precedence is not valid now and the (rather small) benefit of having a single option is to have the code handling this in a single location. david