summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* blkid: move cache to /run on new systemsKarel Zak2012-01-2510-52/+89
| | | | | | | | | | | | | | | | | | | | | | Why? * read-only root * /etc is pretty bad place for caches * all is usually cached by udev in /dev/disk/by-* and libblkid is able to use these symlinks * boot persistent cache is attractive for very small subset of Linux machines (and they already need extra udev tunning otherwise udev will probe all block devices during boot) * the default is possible to override in /etc/blkid.conf The systems without /run directory will not be affected by this change. Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: remove -w option from man page and usage() outputKarel Zak2012-01-252-22/+2Star
| | | | | | | | | | | | The option does not have any effect, the original functionality was removed from e2fsprogs in year 2003 by commit 50b380b4d4ab668bad45033e3a8aaf93c7f42844 git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git So.. don't propagate the option to users in year 2012 :-) Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: (new) add more info about --stab to mount.8Karel Zak2012-01-241-3/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: remove fstab.d supportKarel Zak2012-01-244-20/+2Star
| | | | | | | | If you really need to store your configuration to a alternative files then you have to explicitly specify the files or directories on mount(8) command line by --fstab option. Signed-off-by: Karel Zak <kzak@redhat.com>
* Revert "mount: enable fstab.d"Karel Zak2012-01-243-63/+10Star
| | | | | | See discussion at https://lkml.org/lkml/2012/1/20/104 This reverts commit d8ebc83ff2e9f879ac60a663c1685011a048f603.
* mount: (new) add --fstab to the man pageKarel Zak2012-01-232-2/+2877
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: (new) add --fstab <path> optionKarel Zak2012-01-231-2/+29
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: support multiple --tab-file optionsKarel Zak2012-01-231-38/+70
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: support dirs for mnt_table_parse_fstab(), add mnt_table_parse_dir()Karel Zak2012-01-233-26/+40
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: fix a potential memory leak at mnt_table_parse_dirMasatake YAMATO2012-01-231-4/+7
| | | | | | | | mnt_table_parse_dir in libmount/src/tab_parse.c calls scandir, and then opendir. When the latter one, opendir is failed, buffers allocated in scandir are not released. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
* libmount: Use filter arg of scandir* to pickup /etc/fstab.d/*.fstab filesMasatake YAMATO2012-01-231-36/+27Star
| | | | | | | | | | | | | | | | | | | This patch is based on my last patch: [PATCH 1/2] scandirat based mnt_table_parse_dir implementation scandir* used in `mnt_table_parse_dir in libmount/src/tab_parse.c can take filter function as an argument. `mnt_table_parse_dir' picks up fstab files from namelist returned from scandir* for itself. However, some parts of picking-up job can be done in the filter function. This patch introduces a new function `mnt_table_parse_dir_filter' to share the code for picking-up job between two implementations of `mnt_table_parse_dir_filter', scandir based and scandirat based. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
* libmount: scandirat based mnt_table_parse_dir implementationMasatake YAMATO2012-01-232-2/+64
| | | | | | | | | | | | In comment of `mnt_table_parse_dir' of libmount/src/tab_parse.c: /* TODO: it would be nice to have a scandir() implementation that * is able to use already opened directory */ Nowadays glibc provides `scandirat'. This patch implements `scandirat' based `mnt_table_parse_dir'. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
* mount: add info about libmount features to --version outputKarel Zak2012-01-232-8/+28
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: export info about library featuresKarel Zak2012-01-233-1/+43
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* umount: (new) use the same exit codes as mount(8)Karel Zak2012-01-231-25/+124
| | | | | | | | | | Note that old umount(8) uses 0 and 1 exit codes, and some exceptions like 4 or 32. The new umount(8) cleanups this mess and uses the same exit codes as mount(8) (see mount(8) man page). Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: (new) share exit codes by include/exitcodes.hKarel Zak2012-01-232-46/+47
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: (new) add source/target to error messagesKarel Zak2012-01-201-12/+19
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: (new) improve mount -a exist codes and erroer messagesKarel Zak2012-01-201-15/+9Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: (new) add selinux warningKarel Zak2012-01-202-4/+37
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: add note about LIBMOUNT_* env.variablesKarel Zak2012-01-201-0/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: revert --fstab behavior, add --tab-file optionKarel Zak2012-01-202-14/+48
| | | | | | | | | | | | | | The optional argument for -s, --fstab options (--fstab=file) is not backwardly compatible, because command line with short options (e.g. findmnt -snr) will be interpreted incorrectly. This patch removes support for the optional --fstab argument and introduces a new option --tab-file, for example: findmnt --fstab --tab-file=/etc/fstab.foo Reported-by: Juergen Daubert <jue@jue.li> Signed-off-by: Karel Zak <kzak@redhat.com>
* flock: fix sizeof usage [clang -Wsizeof-pointer-memaccess]Karel Zak2012-01-191-1/+1
| | | | | | | | | | | flock.c:90:23: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memset(sa, 0, sizeof sa); ~~ ^~ Reported-by: Francesco Cosoleto <cosoleto@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: improve ko-release-* scriptsKarel Zak2012-01-192-4/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add ko-release-push scriptKarel Zak2012-01-191-0/+62
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add ko-release-gen scriptKarel Zak2012-01-191-0/+76
| | | | | | | | The script creates directory kernel.org/v<version>/, copy .xz tarball, changelog, release notes and docs to the directory and sign all files by gpg. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: improve changelog targetKarel Zak2012-01-191-2/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add changelog targetKarel Zak2012-01-181-0/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: enable .xz, disable .gzKarel Zak2012-01-181-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.21-rc1)Karel Zak2012-01-182-1/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: add v2.21 ReleaseNotesKarel Zak2012-01-181-0/+799
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update AUTHORS fileKarel Zak2012-01-181-1/+15
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* po: merge changesKarel Zak2012-01-1826-75127/+109499
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* po: update ja.po (from translationproject.org)Takeshi Hamasaki2012-01-181-585/+315Star
|
* po: update fr.po (from translationproject.org)David Prévot2012-01-181-2586/+2258Star
|
* po: update cs.po (from translationproject.org)Petr Pisar2012-01-181-698/+371Star
|
* build-sys: add sleepexit from login.c to smatch non-return functionsKarel Zak2012-01-171-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: remove non-ANSI function declaration [smatch scan]Karel Zak2012-01-172-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck: make fs->type usage more robust [smatch scan]Karel Zak2012-01-171-2/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blockdev: remove non-ANSI function declaration [smatch scan]Karel Zak2012-01-171-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: fix bugs detected by [smatch scan]Karel Zak2012-01-172-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use $(MAKE) for checksmatchKarel Zak2012-01-171-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: make xgetpass more robustKarel Zak2012-01-172-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: fix non-ANSI function declaration [smatch scan]Karel Zak2012-01-171-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* line: fix compiler warnings [-Wunused-parameter]Karel Zak2012-01-171-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: fix __attribute__ keywordKarel Zak2012-01-171-11/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: fix compiler warnings [-Wunused-parameter -Wunused-variable]Karel Zak2012-01-171-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: fix compiler warnings [-Wpointer-sign -Wformat]Karel Zak2012-01-171-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: fix compiler warnings [-Wuninitialized -Wformat]Karel Zak2012-01-172-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: fix compiler warnings [-Wsign-compare]Karel Zak2012-01-171-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: fix poor coding styleKarel Zak2012-01-171-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>