]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Karel Zak [Tue, 11 Jun 2013 13:25:48 +0000 (15:25 +0200)]
fdisk: (dos) fix offset dialog unit
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Jun 2013 13:05:03 +0000 (15:05 +0200)]
fdisk: (dos) remove remaining read_{int,char}() functions
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Jun 2013 12:50:15 +0000 (14:50 +0200)]
fdisk: (dos) use ask API for new partition dialog
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Jun 2013 10:03:12 +0000 (12:03 +0200)]
fdisk: (dos) use ask API to change disk ID
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Jun 2013 08:41:34 +0000 (10:41 +0200)]
fdisk: remove ugly fatal() function
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Jun 2013 08:17:57 +0000 (10:17 +0200)]
fdisk: remove Mac code
The code has been used only to detect magic strings, nothing else.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Jun 2013 10:04:27 +0000 (12:04 +0200)]
lsblk: use TT_FL_FREEDATA for tt table
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Jun 2013 10:00:12 +0000 (12:00 +0200)]
lscpu: use TT_FL_FREEDATA for tt table
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Jun 2013 09:55:52 +0000 (11:55 +0200)]
prlimit: use TT_FL_FREEDATA for tt table
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Jun 2013 09:51:44 +0000 (11:51 +0200)]
swapon: use TT_FL_FREEDATA for tt table
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Jun 2013 09:49:38 +0000 (11:49 +0200)]
losetup: use TT_FL_FREEDATA for tt table
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Jun 2013 09:48:16 +0000 (11:48 +0200)]
partx: use TT_FL_FREEDATA for tt table
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Jun 2013 09:44:40 +0000 (11:44 +0200)]
lslocks: use TT_FL_FREEDATA for tt table
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Jun 2013 09:39:03 +0000 (11:39 +0200)]
findmnt: use TT_FL_FREEDATA for tt table
For findmnt(8) output we mix static and libmount data together with
in-findmnt allocated buffers. This patch cleanup all and use allocated
buffers for all output. All is deallocated by tt_free_table().
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Jun 2013 09:08:08 +0000 (11:08 +0200)]
wdctl: use TT_FL_FREEDATA for tt table
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Jun 2013 09:03:12 +0000 (11:03 +0200)]
libfdisk: (sgi) add driver
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 7 Jun 2013 13:34:39 +0000 (15:34 +0200)]
fdisk: (sgi) remove dead code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 31 May 2013 11:12:15 +0000 (13:12 +0200)]
fdisk: (sgi) rewrite sgi_list_table()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 31 May 2013 09:49:42 +0000 (11:49 +0200)]
fdisk: (sgi) small coding style changes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 31 May 2013 09:18:36 +0000 (11:18 +0200)]
fdisk: (sgi) rdon't use read_chars() to ask yes/no question
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 31 May 2013 09:11:45 +0000 (11:11 +0200)]
fdisk: (sgi) cleanup boot file name code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 30 May 2013 15:44:54 +0000 (17:44 +0200)]
fdisk: (sgi) use ask API for first/last dialogs
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 30 May 2013 15:43:03 +0000 (17:43 +0200)]
fdisk: (sgi) fix checksum calculation
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 30 May 2013 13:42:30 +0000 (15:42 +0200)]
fdisk: (sgi) use stuff ffrom pt-mbr.h and libfdisk
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 30 May 2013 13:22:41 +0000 (15:22 +0200)]
libblkid: move MBR partition types to include/
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 30 May 2013 09:31:38 +0000 (11:31 +0200)]
fdisk: (sgi) cleanup devparams flags
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 May 2013 13:26:23 +0000 (15:26 +0200)]
fdisk: (sgi) remove global freelist
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 May 2013 13:10:03 +0000 (15:10 +0200)]
fdisk: (sgi) remove unnecessary code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 May 2013 13:08:12 +0000 (15:08 +0200)]
libfdisk: (sun) remove duplicate code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 May 2013 13:06:33 +0000 (15:06 +0200)]
fdisk: (sgi) cleanup disk label struct usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 May 2013 12:43:05 +0000 (14:43 +0200)]
fdisk: (sgi) cleanu sgi_info stuff
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 May 2013 12:23:56 +0000 (14:23 +0200)]
fdisk: (sgi) remove magic strings
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 May 2013 12:19:19 +0000 (14:19 +0200)]
fdisk: (sgi) use cpu_to_beXX() and beXX_to_cpu()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 May 2013 11:54:34 +0000 (13:54 +0200)]
fdisk: (sgi) share disk label definition with libblkid
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 May 2013 11:17:06 +0000 (13:17 +0200)]
libblkid: move SGI disklabel definitions to include/
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 24 May 2013 09:48:58 +0000 (11:48 +0200)]
libfdisk: make it possible to reset device properties
- remember user C/H/S and sector size
- reset all device properties before create a new label (maybe the
old setting has been affected by previous on-disk label)
- always apply user setting after the reset
- improve topology/geometry debug messages
Note that for fdisk "user C/H/S and sector size" means on command line
specified values. If you override the setting by c/h/s commands in
expert menu then the setting is applied to the current disk label
only. If you create a new disk label (e.g change MBR to GPT) then
fdisk will use the original setting.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 24 May 2013 07:36:11 +0000 (09:36 +0200)]
fdisk: (sgi) remove printf from code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 24 May 2013 06:55:45 +0000 (08:55 +0200)]
fdisk: cleanup SGI verify disklabel function
- the function is also used to detect gaps, so the verbose output has
to be optional rather than permanently enabled
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 23 May 2013 13:55:35 +0000 (15:55 +0200)]
fdisk: move sun commands to sun menu callback
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 22 May 2013 13:37:47 +0000 (15:37 +0200)]
fdisk: add functions to geometry menu
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 22 May 2013 13:11:56 +0000 (15:11 +0200)]
fdisk: move geometry commands to separate menu
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 22 May 2013 12:41:58 +0000 (14:41 +0200)]
libfdisk: clean up sun geometry stuff
- move fdisk_sun_set_* functions to public API file
- remove extra function to set ncyl -- this has to follow regular
geo.cylinders
- set alternative cylinders to zero (to be compatible with parted)
- it seems that the previous code completely ignored relation between
geo.cylinders, sunlabel->acyl and sunlabel->ncyl.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 21 May 2013 14:12:10 +0000 (16:12 +0200)]
libfdisk: support GPT partition name (label) change
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 21 May 2013 13:30:16 +0000 (15:30 +0200)]
libfdisk: add FDISK_DEBUG_FRONTEND
Currently we use private libfdisk in fdisk code, because the library
API is not stable yet. Let's add debug flag to make it obvious in the
debug output what is from libfdisk and what is from fdisk frontend.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 21 May 2013 13:29:01 +0000 (15:29 +0200)]
fdisk: add GPT specific callback to menu
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 21 May 2013 13:06:11 +0000 (15:06 +0200)]
fdisk: use new menu infrastructure to verify keys
- use generic function to ask for key
- verify the key against the current menu
- call menu callback if defined
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 21 May 2013 12:09:40 +0000 (14:09 +0200)]
fdisk: use remove read_int() usage from fdisk.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 17 May 2013 13:27:39 +0000 (15:27 +0200)]
fdisk: (sgi) don't try to convert MBR to SGI
.. because there don't have to be old MBR at all.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 17 May 2013 13:26:31 +0000 (15:26 +0200)]
fdisk: make internal command line case sensitive
Hey, this is Linux, year 2013...
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 17 May 2013 13:11:11 +0000 (15:11 +0200)]
fdisk: use new menus
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 17 May 2013 13:01:31 +0000 (15:01 +0200)]
fdisk: add bsd, dos and sgi menus
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 17 May 2013 12:11:51 +0000 (14:11 +0200)]
fdisk: detect menu entries collisions in debug mode
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 17 May 2013 11:44:29 +0000 (13:44 +0200)]
fdisk: add sun menu
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 17 May 2013 10:35:23 +0000 (12:35 +0200)]
fdisk: add new stuff to display menus
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>
Karel Zak [Fri, 17 May 2013 10:24:05 +0000 (12:24 +0200)]
libfdisk: make the library usable with tests
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>
Karel Zak [Fri, 17 May 2013 08:18:57 +0000 (10:18 +0200)]
libfdisk: remove unnecessary code from test_fdisk_ask
.. 'sun' stuff is already in the library.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 15 May 2013 14:07:39 +0000 (16:07 +0200)]
fdisk: (gpt) add t, v and x to menu
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 15 May 2013 13:34:54 +0000 (15:34 +0200)]
fdisk: revert add 'G' to create SGI label to the main menu
'G' does not make sense, fdisk menus are case insensitive. Yes...
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 15 May 2013 12:07:14 +0000 (14:07 +0200)]
fdisk: always allow 'p'rint command in expert menu
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 15 May 2013 12:06:34 +0000 (14:06 +0200)]
libfdisk: (gpt) print UUID and NAME in expert mode only
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 15 May 2013 11:43:00 +0000 (13:43 +0200)]
libfdisk: (gpt) cleanup structs members names
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 15 May 2013 11:33:24 +0000 (13:33 +0200)]
fdisk: add asktype "string" and support UUID partition change
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 15 May 2013 11:33:24 +0000 (13:33 +0200)]
libfdisk: add asktype "string" and support UUID partition change
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 2 May 2013 13:40:36 +0000 (15:40 +0200)]
libfdisk: (sun) move driver from fdisk to library
... and also add fdisk_info_new_partition()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 2 May 2013 12:54:55 +0000 (14:54 +0200)]
libfdisk: add fdisk_scround()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 2 May 2013 11:39:46 +0000 (13:39 +0200)]
fdisk: (gpt, sun) use fdisk_partname()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 2 May 2013 11:39:01 +0000 (13:39 +0200)]
libfdisk: add fdisk_partname()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 2 May 2013 10:29:01 +0000 (12:29 +0200)]
fdisk: (sun) use tt.c to list disk label
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 2 May 2013 09:49:28 +0000 (11:49 +0200)]
fdisk: (sun) consolidate 'p'rint output
* use label operation list()
* use generic fdisk geometry output for sun
* don't duplicate geometry information
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 2 May 2013 09:23:25 +0000 (11:23 +0200)]
libfdisk: add fdisk_context_enable_details()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 30 Apr 2013 09:57:30 +0000 (11:57 +0200)]
libfdisk: add list() label operation
... and use it for GPT
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 29 Apr 2013 13:30:55 +0000 (15:30 +0200)]
libfdisk: (gpt) use lib/tt.c to list partitions
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 29 Apr 2013 13:29:48 +0000 (15:29 +0200)]
libfdisk: add new 'ask' type TABLE
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>
Karel Zak [Mon, 29 Apr 2013 13:27:42 +0000 (15:27 +0200)]
lib/tt: add TT_FL_FREEDATA
... to call free() for line data.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Apr 2013 13:25:53 +0000 (15:25 +0200)]
fdisk: (sun) remove dead code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 12 Sep 2013 10:44:09 +0000 (12:44 +0200)]
agetty: add \S to output /etc/os-release data
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}\e 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>
Karel Zak [Thu, 12 Sep 2013 09:11:15 +0000 (11:11 +0200)]
build-sys: add *vim and clang_complete to gitignore
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Tue, 10 Sep 2013 19:51:14 +0000 (20:51 +0100)]
rev: fix new line regression
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>
Sami Kerola [Tue, 10 Sep 2013 19:51:13 +0000 (20:51 +0100)]
tests: lscpu: add CPU max MHz to test results
Commit
44320710bdb98a3036e8297d0e0af043fb72d702 changed default output.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
James Buren [Tue, 3 Sep 2013 08:01:42 +0000 (03:01 -0500)]
agetty: add baud rates available from glibc that are not already supported
This adds userspace support for baud rates reater than 230400, provided the tty
also supports it.
James Buren [Tue, 3 Sep 2013 07:50:57 +0000 (02:50 -0500)]
agetty: only use EXTA/EXTB macros if B19200/B38400 macros are not present
Karel Zak [Wed, 11 Sep 2013 15:42:48 +0000 (17:42 +0200)]
libblkid: export info about bad csum
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>
Karel Zak [Wed, 11 Sep 2013 15:16:18 +0000 (17:16 +0200)]
tests: add bcache images
images generated by Rolf Fokkens <rolf@rolffokkens.nl>
Signed-off-by: Karel Zak <kzak@redhat.com>
Rolf Fokkens [Fri, 6 Sep 2013 10:58:45 +0000 (12:58 +0200)]
libblkid: Add bcache support
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>
Karel Zak [Wed, 11 Sep 2013 12:37:22 +0000 (14:37 +0200)]
lib: add crc64()
Based on bcache code from Rolf Fokkens.
Signed-off-by: Karel Zak <kzak@redhat.com>
Gabriel de Perthuis [Fri, 6 Sep 2013 17:18:15 +0000 (19:18 +0200)]
wipefs: Also wipe superblocks with bad checksums
[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>
Karel Zak [Wed, 11 Sep 2013 11:19:44 +0000 (13:19 +0200)]
libblkid: use separate function to verify checksums
* 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>
Karel Zak [Wed, 11 Sep 2013 14:21:16 +0000 (16:21 +0200)]
tests: use stable MBR ID
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 11 Sep 2013 13:47:02 +0000 (15:47 +0200)]
tests: refresh jbd blkid test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 11 Sep 2013 13:45:52 +0000 (15:45 +0200)]
tests: add XFS log image
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 11 Sep 2013 13:37:05 +0000 (15:37 +0200)]
libblkid: don't use UUID= for xfs external log
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>
Karel Zak [Wed, 11 Sep 2013 13:33:26 +0000 (15:33 +0200)]
libblkid: don't interpret regual XFS as external xfs log
$ 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>
Karel Zak [Wed, 11 Sep 2013 10:54:19 +0000 (12:54 +0200)]
libblkid: diffs between errors and failed probing in via raid
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 11 Sep 2013 10:54:19 +0000 (12:54 +0200)]
libblkid: diffs between errors and failed probing in silicon raid
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 11 Sep 2013 09:15:33 +0000 (11:15 +0200)]
libblkid: populate jbd LOGUUID in addition to UUID
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>
Karel Zak [Wed, 11 Sep 2013 08:40:13 +0000 (10:40 +0200)]
libblkid: rename UUID_LOG to LOGUUID
* 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>
Eric Sandeen [Mon, 5 Aug 2013 23:09:35 +0000 (18:09 -0500)]
libblkid: Detect external XFS log device
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>
Karel Zak [Tue, 10 Sep 2013 11:11:02 +0000 (13:11 +0200)]
lib: rename time-util.c to timeutils.c, fix headers
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Sun, 8 Sep 2013 16:09:09 +0000 (17:09 +0100)]
hexdump: revert global exitval variable change
The change
f2a037fb7b153954d5d34cca48182b6d8832fcfa had unfavorable
effect of making hexdump to return non-zero exit value always.
This happen because oversight when 'exitval' gets to be set. By clance,
one might expect main() to call next() which will return value for
'exitval'. That assessment misses later call chain main() -> display()
-> get() -> next(), which in reverse should return correct value for
'exitval'.
It was mentioned in util-linux maillist that Ondrej Oprala is working on
major renewal of the hexdump . That in mind it seems best to simply to
revert the global 'exitval' and avoid conflict with Ondrej's work.
Reference: http://markmail.org/message/sbnvuhkboreujj5p
Reported-by: Dave Reisner <d@falconindy.com>
CC: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 8 Sep 2013 16:09:07 +0000 (17:09 +0100)]
tools: generate autotools files if missing
Signed-off-by: Sami Kerola <kerolasa@iki.fi>