All of lore.kernel.org
 help / color / mirror / Atom feed
From: Omar Sandoval <osandov@osandov.com>
To: linux-btrfs@vger.kernel.org
Cc: kernel-team@fb.com, David Sterba <dsterba@suse.com>,
	Tomohiro Misono <misono.tomohiro@jp.fujitsu.com>
Subject: Re: [PATCH] Btrfs: allow empty subvol= again
Date: Mon, 21 May 2018 17:17:06 -0700	[thread overview]
Message-ID: <20180522001706.GD14774@vader> (raw)
In-Reply-To: <4daab3c9993c97f3f962b16fcb9b5d578853765d.1526947478.git.osandov@fb.com>

On Mon, May 21, 2018 at 05:07:19PM -0700, Omar Sandoval wrote:
> From: Omar Sandoval <osandov@fb.com>
> 
> I got a report that after upgrading to 4.16, someone's filesystems
> weren't mounting:
> 
> [   23.845852] BTRFS info (device loop0): unrecognized mount option 'subvol='
> 
> Before 4.16, this mounted the default subvolume. It turns out that this
> empty "subvol=" is actually an application bug, but it was causing the
> application to fail, so it's an ABI break if you squint.
> 
> The generic parsing code we use for mount options (match_token())
> doesn't match an empty string as "%s". Previously, setup_root_args()
> removed the "subvol=" string, but the mount path was cleaned up to not
> need that. Add a dummy Opt_subvol_empty to fix this.
> 
> Fixes: 312c89fbca06 ("btrfs: cleanup btrfs_mount() using btrfs_mount_root()")
> Signed-off-by: Omar Sandoval <osandov@fb.com>
> ---
> Hi, Dave,
> 
> This is silly but IMO it's a regression. If you agree, this should
> probably go to 4.17 + stable. I'll submit an xfstests test shortly.
> 
> Thanks!

Update, we fixed the userspace bug now so I'd be fine if we dropped this
patch. I guess there's still a possibility that there are other users
that hit this, so I'll leave it up to you, Dave, whether it's important
enough to care.

  reply	other threads:[~2018-05-22  0:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-22  0:07 [PATCH] Btrfs: allow empty subvol= again Omar Sandoval
2018-05-22  0:17 ` Omar Sandoval [this message]
2018-05-22 10:50   ` David Sterba

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=20180522001706.GD14774@vader \
    --to=osandov@osandov.com \
    --cc=dsterba@suse.com \
    --cc=kernel-team@fb.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=misono.tomohiro@jp.fujitsu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.