Unverified Commit ead62267 authored by Jan Kara's avatar Jan Kara Committed by Christian Brauner
Browse files

btrfs: Do not restrict writes to btrfs devices



Btrfs device probing code needs adaptation so that it works when writes
are restricted to its mounted devices. Since btrfs maintainer wants to
merge these changes through btrfs tree and there are review bandwidth
issues with that, let's not block all other filesystems and just not
restrict writes to btrfs devices for now.

CC: <linux-btrfs@vger.kernel.org>
CC: David Sterba <dsterba@suse.com>
CC: Josef Bacik <josef@toxicpanda.com>
CC: Chris Mason <clm@fb.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20231101174325.10596-4-jack@suse.cz


Acked-by: default avatarDavid Sterba <dsterba@suse.com>
Reviewed-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent ed5cc702
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1403,6 +1403,8 @@ static struct dentry *btrfs_mount_root(struct file_system_type *fs_type,
			return ERR_PTR(error);
	}

	/* No support for restricting writes to btrfs devices yet... */
	mode &= ~BLK_OPEN_RESTRICT_WRITES;
	/*
	 * Setup a dummy root and fs_info for test/set super.  This is because
	 * we don't actually fill this stuff out until open_ctree, but we need