summaryrefslogtreecommitdiff
path: root/misc-utils
AgeCommit message (Collapse)AuthorFilesLines
2009-12-10po: fix msgid bugsKarel Zak1-1/+1
Reported-by: Petr Pisar <petr.pisar@atlas.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
2009-11-11blkid: add ID_FS_AMBIVALENT for udev outputKarel Zak1-3/+87
UI tools that read information from udev need a way how inform users about ambivalent probing result (more valid filesystems on the device). This patch add a new ID_FS_AMBIVALENT variable: ID_FS_AMBIVALENT=<info> <info> [ ...] where <info> is: <usage>:<type>[:<version>] all strings are encoded (white spaces and utf8 are replaced with \hex). For example: # blkid -p -o udev /dev/sda1 ID_FS_AMBIVALEN=filesystem:vfat:FAT12 other:swap:2 Signed-off-by: Karel Zak <kzak@redhat.com>
2009-11-09build-sys: cleanup AM_CFLAGS usageKarel Zak1-6/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-11-06build-sys: fix out-of-source buildKarel Zak1-4/+4
The blkid.h file is generated and stored in $top_builddir. Signed-off-by: Karel Zak <kzak@redhat.com>
2009-11-05build-sys: remove LT_STATIC_LDFLAGSKarel Zak1-1/+1
It was really stupid idea to use *_LDFLAGS for some global variable. Signed-off-by: Karel Zak <kzak@redhat.com>
2009-11-05build-sys: cleanup static buildingKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-30wipefs: remove obsolete commentKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-16namei: use c.hKarel Zak1-4/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-16setterm: use c.h, remove tailing whitespaceKarel Zak1-13/+9
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-16cal: use c.hKarel Zak1-9/+9
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-16kill: use c.hKarel Zak1-5/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-14blkid: add pretty output, document -L incompatibility with e2fsprogsKarel Zak3-15/+27
... sad story, I have temporary disabled pretty-output code in very early version of blkid.c in u-l-ng. (It was also in time when pretty-output was very new feature in e2fsprogs.) Unfortunately, the -L option (shortcut to "-o list") in u-l-ng version was reused for for any other functionality few months later.... this stupid thing was released in u-l-ng 2.15 and 2.16 without any negative feedback from users. It means the blkid from u-l-ng is not backwardly compatible with the original version from e2fsprogs. The -L option has a different meaning there. I'm sorry about this bug... This patch: * enable pretty-output (-o line) * add a note about incompatibility between u-l-ng and e2fsprogs to blkid.8 man page Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-09namei: better mount points detectionKarel Zak1-3/+40
Reported-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-09cal: remove obsolete <localeinfo.h> includeGuillem Jover1-2/+0
The fact that the system does not have <langinfo.h> does not imply that it has <localeinfo.h> (which is an ancient header from Linux libc4). Signed-off-by: Guillem Jover <guillem@hadrons.org>
2009-10-07namei: gater information about / (root)Karel Zak1-6/+8
$ ll -d /foo drwxr-xr-x 2 kzak kzak 4096 2009-10-07 01:23 /foo old version: $ namei -l /foo f: /foo Segmentation fault new version: $ namei -l /foo f: /foo drwxr-xr-x root root / drwxr-xr-x kzak kzak foo Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-07namei: fix alone symlink evaluationKarel Zak1-3/+4
$ mkdir aaa $ ln -s aaa mylink old version: $ namei mylink namei: could not stat 'mylink/aaa': No such file or directory new version: $ namei mylink f: mylink l mylink -> aaa d aaa Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-07wipefs: fix coding styleKarel Zak1-2/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-06wipefs: new commandKarel Zak5-2/+437
# ./wipefs /dev/sda4 offset type ---------------------------------------------------------------- 0xff6 swap [other] UUID: da6c54ea-77d9-470a-82f1-e793fd5d9131 0x36 vfat [filesystem] UUID: 497F-3013 # ./wipefs --offset 0x36 /dev/sda4 8 bytes [46 41 54 31 32 20 20 20] erased at offset 0x36 (vfat) Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-05findfs: fix typo in findfs.8Karel Zak1-2/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-24blkid: allow to use -s <TAG> for low-level probing (-p mode)Karel Zak2-20/+32
# blkid -p -s TYPE /dev/sda3 /dev/sda3: TYPE="swap" Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-16libblkid: use the new API in whole u-l-ngKarel Zak1-5/+9
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-08-17write.1: formattingPeter Breitenlohner1-1/+3
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2009-08-17whereis.1: formattingPeter Breitenlohner1-11/+7
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2009-08-17uuidgen.1: formattingPeter Breitenlohner1-5/+1
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2009-08-17uuidd.8: formattingPeter Breitenlohner1-30/+14
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2009-08-17setterm.1: formattingPeter Breitenlohner1-14/+13
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2009-08-17scriptreplay.1: formattingPeter Breitenlohner1-3/+10
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2009-08-17reset.1: formattingPeter Breitenlohner1-1/+8
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2009-08-17rename.1: formattingPeter Breitenlohner1-3/+4
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2009-08-17namei.1: formattingPeter Breitenlohner1-9/+12
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2009-08-17mcookie.1: formattingPeter Breitenlohner1-3/+6
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2009-08-17kill.1: formattingPeter Breitenlohner1-4/+10
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2009-08-17ddate.1: formattingPeter Breitenlohner1-14/+16
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2009-08-17cal.1: formattingPeter Breitenlohner1-1/+1
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2009-08-17replace bcopy,bzero,index and rindexDaniel Mierswa2-3/+3
Those 4 functions are marked as LEGACY in POSIX.1-2001 and removed in POSIX.1-2008. Replaced with memmove,memset,strchr and strrchr. Signed-off-by: Daniel Mierswa <impulze@impulze.org>
2009-07-20cal: fix broken computation for Sep 1752Peter Breitenlohner1-9/+14
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de> Signed-off-by: Pádraig Brady <P@draigBrady.com>
2009-07-20cal: fix (harmless) typoPeter Breitenlohner1-1/+1
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de> Signed-off-by: Pádraig Brady <P@draigBrady.com>
2009-07-20scriptreplay: fix typo in error messageKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-04build-sys: rename to _execdirKarel Zak1-11/+11
The variable name "usrlibexecdir" is very confusing (because we have /usr/libexec). The "exec" prefix is required for user-defined directories, see http://www.gnu.org/software/hello/manual/automake/The-Two-Parts-of-Install.html#The-Two-Parts-of-Install This patch renames all usr*execdir variables to usr*_execdir. Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-02blkid: move to misc-utils/ directoryKarel Zak6-0/+958
The others utilities are in one of the top-level directories. That's confusing to have blkid(8) and findfs(8) in shlibs/ tree. Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-01uuidd: init /var/run/uuidd, add option for on-demand mode to .rc fileKarel Zak1-5/+21
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-01Merge branch 'tytso' of ↵Karel Zak1-5/+21
git://git.kernel.org/pub/scm/linux/kernel/git/tytso/util-linux-ng into test
2009-06-30libuuid, uuidd: Avoid infinite loop while reading from the socket fdTheodore Ts'o1-5/+9
If for some reason the uuidd daemon or the process calling uuidd exited unexpectely, the read_all() function would end up looping forever, either in uuidd or in libuuid. Fix this terminating the loop if no data can be read after five tries to read from the file descriptor. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-06-30uuidd: Avoid closing the server socket when calling create_daemon()Theodore Ts'o1-0/+12
In the event that file descriptors 0-2 are closed when uuidd is started, the server socket could be created as a file descriptor that will get closed when create_daemon() tries detaching the uuidd daemon from its controlling tty. Avoid this case by using dup(2). Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-06-30uuidd: fix $PIDFILE in uuidd.rcKarel Zak1-1/+1
.. that's very probably a typo. Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-30uuidd: move uuidd.rc to misc-utils directoryKarel Zak2-1/+56
The file should be on more visible place. Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-30include: clean up _PATH_DEV_* macrosKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-29uuidd: move uuidd files from /var/lib/libuuid to /var/run/uuiddKarel Zak1-2/+2
Reported-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-28build-sys: fix --disable-uuiddKarel Zak1-1/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22uuidd: new command (UUID daemon from e2fsprogs)Karel Zak4-0/+675
Signed-off-by: Karel Zak <kzak@redhat.com>