linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Mason <clm@fb.com>
To: Qu Wenruo <quwenruo@cn.fujitsu.com>,
	Eric Sandeen <sandeen@redhat.com>, <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH v2] btrfs: fix nossd and ssd_spread mount option regression
Date: Wed, 2 Jul 2014 20:49:10 -0400	[thread overview]
Message-ID: <53B4A886.70106@fb.com> (raw)
In-Reply-To: <53B4A2AD.2010506@cn.fujitsu.com>

On 07/02/2014 08:24 PM, Qu Wenruo wrote:
> 
> -------- Original Message --------
> Subject: Re: [PATCH v2] btrfs: fix nossd and ssd_spread mount option
> regression
> From: Eric Sandeen <sandeen@redhat.com>
> To: Qu Wenruo <quwenruo@cn.fujitsu.com>, linux-btrfs@vger.kernel.org
> Date: 2014年07月03日 00:12
>> On 7/1/14, 11:19 PM, Qu Wenruo wrote:
>>> From: Eric Sandeen <sandeen@redhat.com>
>>>
>>> The commit
>>>
>>> 0780253 btrfs: Cleanup the btrfs_parse_options for remount.
>>>
>>> broke ssd options quite badly; it stopped making ssd_spread
>>> imply ssd, and it made "nossd" unsettable.
>>>
>>> Put things back at least as well as they were before
>>> (though ssd mount option handling is still pretty odd:
>>>
>>> Reported-by: Roman Mamedov <rm@romanrm.net>
>>> Signed-off-by: Eric Sandeen <sandeen@redhat.com>
>>> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
>>> ---
>>> v2(By Qu):
>>>    Make nossd disable ssd and ssd_spread.
>>>    Add notes in Documentation/btrfs.txt
>> Ok, thanks for fixing up a little bit more.
>>
>> But option handling is still strange even with your changes:
>>
>> # mount -o ssd /dev/sdc3 /mnt/test; grep sdc3 /proc/mounts
>> /dev/sdc3 /mnt/test btrfs rw,seclabel,relatime,ssd,space_cache 0 0
>>
>> # mount -o remount,nossd /dev/sdc3 /mnt/test; grep sdc3 /proc/mounts
>> /dev/sdc3 /mnt/test btrfs rw,seclabel,relatime,nossd,space_cache 0 0
>>
>> # mount -o remount,ssd_spread /dev/sdc3 /mnt/test; grep sdc3 /proc/mounts
>> /dev/sdc3 /mnt/test btrfs
>> rw,seclabel,relatime,nossd,ssd_spread,space_cache 0 0
>>
>> # mount -o remount,ssd /dev/sdc3 /mnt/test; grep sdc3 /proc/mounts
>> /dev/sdc3 /mnt/test btrfs
>> rw,seclabel,relatime,nossd,ssd_spread,space_cache 0 0
>>
>> I'd rather just commit my first patch to fix the regression ASAP, and
>> fix the ssd option mess with a second patch which has received careful
>> testing.
>>
>> -Eric
> OK, please merge the v1 patch only.
> I'll fix the ssd dependency things later.

The v1 patch is already queued ;)

-chris

      reply	other threads:[~2014-07-03  0:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-02  4:19 [PATCH v2] btrfs: fix nossd and ssd_spread mount option regression Qu Wenruo
2014-07-02 16:12 ` Eric Sandeen
2014-07-03  0:24   ` Qu Wenruo
2014-07-03  0:49     ` Chris Mason [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53B4A886.70106@fb.com \
    --to=clm@fb.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=quwenruo@cn.fujitsu.com \
    --cc=sandeen@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).