On Tue, May 21, 2024 at 07:27:31PM +0930, Qu Wenruo wrote:
Although 'norecovery' mount option is marked deprecated for a long time and a warning message is introduced during the deprecation window, it's still actively utilized by several projects that need a safely way to mount a btrfs without any writes.
Furthermore this 'norecovery' mount option is supported by most major filesystems, which makes it harder to validate our motivation.
This patch would re-introduce the 'norecovery' mount option, and output a message to recommend 'rescue=nologreplay' option.
Link: https://lore.kernel.org/linux-btrfs/ZkxZT0J-z0GYvfy8@gardel-login/#t Link: https://github.com/systemd/systemd/pull/32892 Link: https://bugzilla.suse.com/show_bug.cgi?id=1222429 Reported-by: Lennart Poettering lennart@poettering.net Reported-by: Jiri Slaby jslaby@suse.com Fixes: a1912f712188 ("btrfs: remove code for inode_cache and recovery mount options") Cc: stable@vger.kernel.org # 6.8+ Signed-off-by: Qu Wenruo wqu@suse.com
Reviewed-by: David Sterba dsterba@suse.com