Thread (7 messages) 7 messages, 4 authors, 2012-06-18

Re: [PATCH] Btrfs: add "nocompress" mount option

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 /mnt
The 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help