On Thu, Apr 27, 2023 at 04:58:46PM +0200, Emanuele Rocca wrote: > > the btrfs-progs udeb currently includes only /bin/btrfs and /bin/mkfs.btrfs. > > Please add /sbin/fsck.btrfs as well so that it can be included in the > initramfs > generated by the debian installer. Patch attached.
That file is a no-op script that's there just to placate mount mechanisms which blindly run fsck on startup. Unlike ext4 which still supports ext2 filesystems that risk damage, possibly widespread and/or hidden, in the case of an unsafe shutdown, modern filesystems (btrfs, xfs, jfs, …) no longer require that. If the kernel is unable to recover on its own, the cause must have been a hardware or software problem which can't happen during normal operation, and data loss of some kind is likely -- thus there's nothing that's prudent to try to fix _automatically_. Ie, /sbin/fsck.btrfs serves no purpose that'd be useful in an udeb. Before I close this report, may I ask if you have a purpose for this stub? You probably wanted a full-blown recovery tool, but I may be getting you wrong. Meow! -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ ʀᴜꜱꜱɪᴀɴᴇꜱ ᴇᴜɴᴛ ᴅᴏᴍᴜꜱ ⢿⡄⠘⠷⠚⠋⠀ ⠈⠳⣄⠀⠀⠀⠀