summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-09-16fdisk: (sgi) don't try to convert MBR to SGIKarel Zak1-1/+2
.. because there don't have to be old MBR at all. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: make internal command line case sensitiveKarel Zak1-2/+7
Hey, this is Linux, year 2013... Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: use new menusKarel Zak4-78/+10
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: add bsd, dos and sgi menusKarel Zak1-6/+56
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: detect menu entries collisions in debug modeKarel Zak1-0/+50
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: add sun menuKarel Zak1-2/+23
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: add new stuff to display menusKarel Zak2-0/+213
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>
2013-09-16libfdisk: make the library usable with testsKarel Zak1-1/+2
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>
2013-09-16libfdisk: remove unnecessary code from test_fdisk_askKarel Zak1-1/+0
.. 'sun' stuff is already in the library. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (gpt) add t, v and x to menuKarel Zak1-3/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: revert add 'G' to create SGI label to the main menuKarel Zak1-4/+0
'G' does not make sense, fdisk menus are case insensitive. Yes... Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: always allow 'p'rint command in expert menuKarel Zak1-5/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: (gpt) print UUID and NAME in expert mode onlyKarel Zak1-16/+39
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: (gpt) cleanup structs members namesKarel Zak1-13/+19
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: add asktype "string" and support UUID partition changeKarel Zak2-3/+21
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: add asktype "string" and support UUID partition changeKarel Zak4-1/+105
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: (sun) move driver from fdisk to libraryKarel Zak11-56/+57
... and also add fdisk_info_new_partition() Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: add fdisk_scround()Karel Zak4-19/+27
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (gpt, sun) use fdisk_partname()Karel Zak2-12/+11
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: add fdisk_partname()Karel Zak3-1/+86
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sun) use tt.c to list disk labelKarel Zak2-30/+63
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sun) consolidate 'p'rint outputKarel Zak2-28/+18
* use label operation list() * use generic fdisk geometry output for sun * don't duplicate geometry information Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: add fdisk_context_enable_details()Karel Zak4-2/+32
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: add list() label operationKarel Zak5-13/+35
... and use it for GPT Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: (gpt) use lib/tt.c to list partitionsKarel Zak1-20/+30
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: add new 'ask' type TABLEKarel Zak4-1/+39
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>
2013-09-16lib/tt: add TT_FL_FREEDATAKarel Zak2-4/+14
... to call free() for line data. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sun) remove dead codeKarel Zak2-9/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-12agetty: add \S to output /etc/os-release dataKarel Zak3-2/+112
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>
2013-09-12build-sys: add *vim and clang_complete to gitignoreKarel Zak1-0/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-12rev: fix new line regressionSami Kerola1-1/+3
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>
2013-09-12tests: lscpu: add CPU max MHz to test resultsSami Kerola3-0/+3
Commit 44320710bdb98a3036e8297d0e0af043fb72d702 changed default output. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-09-12agetty: add baud rates available from glibc that are not already supportedJames Buren1-0/+36
This adds userspace support for baud rates reater than 230400, provided the tty also supports it.
2013-09-12agetty: only use EXTA/EXTB macros if B19200/B38400 macros are not presentJames Buren1-7/+5
2013-09-11libblkid: export info about bad csumKarel Zak1-4/+11
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>
2013-09-11tests: add bcache imagesKarel Zak4-0/+8
images generated by Rolf Fokkens <rolf@rolffokkens.nl> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-11libblkid: Add bcache supportRolf Fokkens4-0/+139
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>
2013-09-11lib: add crc64()Karel Zak5-0/+120
Based on bcache code from Rolf Fokkens. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-11wipefs: Also wipe superblocks with bad checksumsGabriel de Perthuis3-3/+9
[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>
2013-09-11libblkid: use separate function to verify checksumsKarel Zak6-15/+39
* 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>
2013-09-11tests: use stable MBR IDKarel Zak3-3/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-11tests: refresh jbd blkid testKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-11tests: add XFS log imageKarel Zak2-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-11libblkid: don't use UUID= for xfs external logKarel Zak1-1/+0
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>
2013-09-11libblkid: don't interpret regual XFS as external xfs logKarel Zak1-0/+3
$ 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>
2013-09-11libblkid: diffs between errors and failed probing in via raidKarel Zak1-5/+7
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-11libblkid: diffs between errors and failed probing in silicon raidKarel Zak1-3/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-11libblkid: populate jbd LOGUUID in addition to UUIDKarel Zak1-0/+2
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>
2013-09-11libblkid: rename UUID_LOG to LOGUUIDKarel Zak2-2/+2
* 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>
2013-09-11libblkid: Detect external XFS log deviceEric Sandeen3-0/+90
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>