Commit Graph

5 Commits

Author SHA1 Message Date
Karel Kočí 3e2995aff2
btrfs-progs: fix check for btrfs in btrfs scan
The previous implementation always succeeded so no scan was performed.
This now fixes that and it correctly scans for BTRFS  devices if BTRFS
support is in kernel.

Signed-off-by: Karel Kočí <karel.koci@nic.cz>
2020-03-09 15:19:36 +01:00
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
Daniel Golle 602a247dfd btrfs-progs: improve init script
check for btrfs in /proc/filesystems instead of /proc/modules

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2014-12-22 09:50:06 +01:00
Stefan Hellermann 02f732fb5d btrfs-progs: Fix init script
the init script calls the old btrfsctl util, which is not included in
btrfs-progs anymore. Update the init script to call "btrfs device scan"
which assembles multi device btrfs filesystems.

Signed-off-by: Stefan Hellermann <stefan@the2masters.de>
2014-12-08 14:02:28 +01:00
Daniel Golle 5b9977c6a7 btrfs-progs: import from oldpackges
bump to 3.17.3, add LICENSE and MAINTAINER info, bump license header,
add missing dependencies, ...

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2014-12-05 18:57:45 +01:00