openwrt-packages/utils/btrfs-progs
Karel Kočí ae48f3f9e9
btrfs-progs: scan devices in preinit instead of init script
There is no gain to do device scan in init. Commonly we want to always
scan BTRFS devices to ensure that after boot raids are correctly linked.
It should be done before any init script tries to mount any raid FS.

Comparing init scripts and preinit scripts there are I think two primary
considerations. First is if user is expected to restart/reload/stop
given service on will. I think that there is no such reason for this as
user can easily enough just call btrfs utility it self. Second
consideration is if it makes sense to have it optional. This means if we
want to have ability to enable and disable given service. I think that
there is no such need in this case. It is pretty much doing nothing if
you don't have BTRFS FS connected and when you have you probably want to
scan it.

Signed-off-by: Karel Kočí <karel.koci@nic.cz>
2019-08-06 09:56:59 +02:00
..
files btrfs-progs: scan devices in preinit instead of init script 2019-08-06 09:56:59 +02:00
Config.in btrfs-progs: drop unnecessary Kconfig dependency 2019-04-03 22:21:28 +02:00
Makefile btrfs-progs: scan devices in preinit instead of init script 2019-08-06 09:56:59 +02:00