Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Actually, $prefix/lib/stc-1/stcd but the whole stc tarball is supposed
to be built with prefix=/ so it works before /usr is mounted and in
the initramfs.
(No, we can't use $libdir because that's sometimes /lib64 and we want
the stcd binary to be at a predictable location (basically same
reasons udev uses /lib/udev even on 64-bit systems.))
(Btw, we actually need libgudev1 moved from /usr/lib64 to /lib64 (on
Fedora at least) but that's another story.)
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
This makes the configuration files slighty more readable and also
cleans up the API somewhat.
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
# G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --leak-check=full --show-reachable=yes .libs/lt-stcd
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
We don't really want the last two lines of
Oct 8 17:08:00 x61 stcd[11538]: stcd 0.1 starting up
Oct 8 17:08:00 x61 stcd[11538]: coldplugging items
Oct 8 17:08:00 x61 stcd[11538]: done coldplugging items
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
... and also sort out slave_devices, device and mount_paths state
variables.
# stc start --id sekrit
Passphrase needed for item sekrit_Luks of type luks (/dev/sdb2)
Passphrase:
Item sekrit_Luks has been started (/dev/sdb2 is unlocked as /dev/dm-0).
Item sekrit has been started (/dev/dm-0 is mounted at /mnt/sekrit).
# stc start --id MyRaid
Item MyRaid_Raid has been started (/dev/md127 with components /dev/sdb1, /dev/mmcblk0p1).
Item MyRaid has been started (/dev/md127 is mounted at /mnt/MyRaid).
# stc stop --id MyRaid
Item MyRaid has been stopped (/dev/md127 unmounted).
Item MyRaid_Raid has been stopped (components /dev/sdb1, /dev/mmcblk0p1).
# stc stop --id sekrit
Item sekrit has been stopped (/dev/dm-0 unmounted).
Item sekrit_Luks has been stopped (/dev/sdb2 locked).
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Since /usr/sbin/stc really is a system administration command, not a
user command.
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
... and rearrange the man page for stc.conf a bit.
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
In particular, drop the Options key and just include all keys that are
prefixed with the name of the item type. This means that e.g.
Options=Filesystem:mount_path=/media/My Photos;Filesystem:options=umask=0022,notime
becomes
FilesystemMountPath=/media/My Photos
FilesystemOptions=umask=0022,noatime
which is a lot easier to read.
Also rename
LUKS -> Luks
MDRaid -> Raid
NickName -> Comment
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
This is much nicer since it conveys that the items with deps also get
can-start-degraded, e.g.
MyRaid_RAID:
Type: md-raid
Target: UUID=a4a5646e:933c7856:23bfc059:6e17b7ec
State: can-start-degraded
Slave Devices: /dev/sdb1
MyRaid:
Type: filesystem
Target: UUID=a6f27fe4-97c4-433d-ae52-f2f97939514e
Options: Filesystem:mount_path=/mnt/MyRaid
Filesystem:options=defaults
Dependencies: MyRaid_RAID
State: can-start-degraded
instead of can-start-dependencies.
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
All the possible flags were actually mutually exclusive already. So
better just use a normal enumeration.
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
http://people.freedesktop.org/~david/stc-list.png
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
For example, reject MDRaid items with Device=/dev/blah and Filesystem
items without a Filesystem:mount_path=/where_to_mount
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|