mountpoint-util: Deal with kernel API breakage in "norecovery" mount option
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 17 May 2024 08:46:12 +0000 (10:46 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 17 May 2024 12:29:09 +0000 (14:29 +0200)
commite3828d7103a99a15a1e947ba3063294ead590631
treef52d264d58bc1014cf34d65b5b653149f4d73427
parent19da480d3ccc5147e032b1742c6e4607fe2db644
mountpoint-util: Deal with kernel API breakage in "norecovery" mount option

"norecovery" was deprecated for btrfs in
https://github.com/torvalds/linux/commit/74ef00185eb864252156022ff129b01549504175
and removed in
https://github.com/torvalds/linux/commit/a1912f712188291f9d7d434fba155461f1ebef66.

Let's drop our assumption that btrfs supports "norecovery" and first query for the
new name of the option followed by querying for the old name.
src/basic/mountpoint-util.c
src/basic/mountpoint-util.h
src/shared/dissect-image.c
src/test/test-mountpoint-util.c