Age | Commit message (Collapse) | Author | Files | Lines |
|
.. because there don't have to be old MBR at all.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Hey, this is Linux, year 2013...
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
fdisk menus:
- driven by menu and menu_entry structs
- supports normal and expect mode
- supports multiple independent menus
- supports menu separators to make output more readable
- allows to exclude by whole menu or menu entries by label type
TODO:
- define per label menus
- per menu callback
- sensitive only to keys defined in the currently printed menu
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
We don't have completely initialized all label drivers in the tests, so
make the code more robust.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
.. 'sun' stuff is already in the library.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
'G' does not make sense, fdisk menus are case insensitive. Yes...
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
... and also add fdisk_info_new_partition()
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
* use label operation list()
* use generic fdisk geometry output for sun
* don't duplicate geometry information
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
... and use it for GPT
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
The new type could be used to print table-like output (for example
list of the partitions).
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
... to call free() for line data.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
This patch allows to use a new \S or \S{VARNAME} sequence in the
/etc/issue file. The sequence prints data from /etc/os-release. The
reason is to keep /etc/issue file distribution and release
independent.
The \S{ANSI_COLOR} is converted to the real terminal escape seq.
For example:
\S
Kernel \r on an \m (\l)
or more complex example:
Welcome to \S{ANSI_COLOR}\S{NAME}0m \S{VERSION}
Report bugs at \S{BUG_REPORT_URL}.
See http://www.freedesktop.org/software/systemd/man/os-release.html
fr more details about /etc/issue.
Based on patch from Bill Nottingham <notting@redhat.com>.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Commit 4b4eb34004378fe70259acd8f2f859e7b5cc3726 made output incorrect for
input lines that does not have new line. For example
$ printf "a b c\n1 2 3" | rev
c b a
2 13
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
|
|
Commit 44320710bdb98a3036e8297d0e0af043fb72d702 changed default output.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
|
|
This adds userspace support for baud rates reater than 230400, provided the tty
also supports it.
|
|
|
|
If a bad check sum is detected and BLKID_SUBLKS_BADCSUM is enabled
than SBBADCSUM=1 is added to the probing result.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
images generated by Rolf Fokkens <rolf@rolffokkens.nl>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
From https://bugzilla.redhat.com/show_bug.cgi?id=1001120#c11
[kzak@redhat.com: - move crc64 code to lib/ by separate patch,
- use BLKID_USAGE_OTHER rather than _RAID]
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Based on bcache code from Rolf Fokkens.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
[kzak@redhat.com: - move BLKID_SUBLKS_BADCSUM login to
blkid_probe_verify_csum()]
Signed-off-by: Gabriel de Perthuis <g2p.code@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
* consolidate "incorrect checksum" debug messages
* verify all on one place
Based on patch from Gabriel de Perthuis <g2p.code@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
The log UUID is usually the same as filesystem UUID, it is bad idea to
have two devices with the same UUID in the system. It seems batter to
use only LOGUUID= for xfs external log.
# mkfs.xfs -l logdev=/dev/sdb1 /dev/sdb2
# blkid -p -o udev /dev/sdb1 | grep FS
ID_FS_LOGUUID=4063d453-5c01-46ce-b92f-9523d64aecc7
ID_FS_TYPE=xfs_external_log
ID_FS_USAGE=other
# blkid -p -o udev /dev/sdb2 | grep FS
ID_FS_UUID=4063d453-5c01-46ce-b92f-9523d64aecc7
ID_FS_TYPE=xfs
ID_FS_USAGE=filesystem
The filesystem (sdb2) uses UUID= and log (sdb1) uses LOGUUID=.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
$ blkid -o udev -p tests/output/blkid/images-fs/xfs.img
ID_FS_AMBIVALENT=filesystem:xfs other:xfs_external_log
it seems that regular XFS with internal log may be interpreted as log
device. This is incorrect.
This patch checks for XFS magic string to avoid this collision.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
The LOGUUID is alias for UUID, this alias is necessary to standardize
the tag name (we want to use the same tag LOGUUID= for all external
logs on all filesystems).
Note that for another filesystems (e.g. xfs) we have to differentiate
between the journal and filesystem uuids to avoid collisions, because
both devices use the same uuid.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
* the goal is to make the uuid visible and usable it as mount
variable/spec, then LOGUUID= seems better than UUID_LOG=
* we already have PARTUUID=
* the UUID_RAW and UUID_SUB are not used by mount(8)
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Detects external XFS log devices with a minimum size of 10MB. It's possible to
craft a smaller log, but that would be very unlikely; it'd require a small XFS
filesystem and an intentionally small log, which would defeat the performance
goal of an external log in the first place.
[kzak@redhat.com: - use UUID_LOG variable name for the log uuid]
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
|