]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Karel Zak [Thu, 22 Dec 2011 11:08:23 +0000 (12:08 +0100)]
losetup: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 22 Dec 2011 10:07:21 +0000 (11:07 +0100)]
losetup: check to control debug output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 22 Dec 2011 10:02:58 +0000 (11:02 +0100)]
losetup: print info about one device
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 21 Dec 2011 18:24:58 +0000 (19:24 +0100)]
losetup: rewrite loop setup
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 21 Dec 2011 14:38:59 +0000 (15:38 +0100)]
losetup: rewrite -f
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 21 Dec 2011 14:28:10 +0000 (15:28 +0100)]
losetup: rewrite -d and -D
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 21 Dec 2011 14:02:47 +0000 (15:02 +0100)]
losetup: rewrite -c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 21 Dec 2011 13:44:53 +0000 (14:44 +0100)]
losetup: rewrite -j
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 20 Dec 2011 19:43:09 +0000 (20:43 +0100)]
losetup: rewrite -a
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 20 Dec 2011 17:25:04 +0000 (18:25 +0100)]
lib,loopdev: add missing functions
- improve loop_info usage (don't call ioctl more than once)
- add functions to get devno and inode of the backing file
- add function for compare any file with backing file by devno + inode
or by filename
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 21 Dec 2011 16:32:01 +0000 (17:32 +0100)]
libblkid; fix memory leak in blkid_probe_get_wholedisk_probe()
Reported-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Davidlohr Bueso [Tue, 20 Dec 2011 11:58:16 +0000 (12:58 +0100)]
prlimit: use xalloc libs
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Karel Zak [Tue, 20 Dec 2011 12:07:54 +0000 (13:07 +0100)]
losetup: move to sys-utils directory
Now losetup(8) is independent on mount/ stuff at all.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 20 Dec 2011 11:52:00 +0000 (12:52 +0100)]
losetup: remove mount-specific headers
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 20 Dec 2011 11:36:02 +0000 (12:36 +0100)]
losetup: remove unnecessary header files
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 20 Dec 2011 11:20:51 +0000 (12:20 +0100)]
losetup: remove 32-bit ioctls
... kernel 2.4 ?! Who cares?
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 20 Dec 2011 11:13:06 +0000 (12:13 +0100)]
losetup: remove #ifdef LOOP_SET_FD nonsense
It's build-system task to enable/disable utils according to accessible
system features.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 20 Dec 2011 10:41:24 +0000 (11:41 +0100)]
losetup: remove obsolete #ifdef MAIN
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 19 Dec 2011 21:51:38 +0000 (22:51 +0100)]
libmount: don't use "new" in header file
Reported-by: ben <benscott@nwlink.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Francesco Cosoleto [Thu, 15 Dec 2011 19:02:49 +0000 (20:02 +0100)]
tests: update fdisk tests
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Francesco Cosoleto [Thu, 15 Dec 2011 19:02:48 +0000 (20:02 +0100)]
fdisk: improve some messages
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Francesco Cosoleto [Thu, 15 Dec 2011 19:02:47 +0000 (20:02 +0100)]
fdisk: Fix bad invalid flag 0x00000 warning message
This splits check_dos_label() and dos_init() off from get_boot() and gets
rid of the invalid flag 0x00000 warning message due to a check for MBR
signs in zeroized buffer:
memset(MBRbuffer, 0, 512);
if (what == create_empty_dos)
goto got_dos_table;
[...]
got_dos_table:
if (!valid_part_table_flag(MBRbuffer)) {
[...]
if (!valid_part_table_flag(pe->sectorbuffer))
fprintf(stderr, _("Warning: invalid flag 0x%04x of partition "
[...]
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Francesco Cosoleto [Thu, 15 Dec 2011 19:02:46 +0000 (20:02 +0100)]
fdisk: avoid an intermediate variable in command_prompt()
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Francesco Cosoleto [Thu, 15 Dec 2011 19:02:45 +0000 (20:02 +0100)]
fdisk: don't use get_existing_partition() if disk label isn't dos
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Francesco Cosoleto [Thu, 15 Dec 2011 19:02:44 +0000 (20:02 +0100)]
fdisk: remove unused guess_device_type() function
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Francesco Cosoleto [Thu, 15 Dec 2011 19:02:43 +0000 (20:02 +0100)]
fdisk: get rid of get_boot(create_empty_sun) call
create_sunlabel() should create a new empty SUN disklabel without checking data
itself writes to memory and initialize internal related fdisk variables.
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Francesco Cosoleto [Thu, 15 Dec 2011 19:02:42 +0000 (20:02 +0100)]
fdisk: get rid of type_open global variable
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Francesco Cosoleto [Thu, 15 Dec 2011 19:02:41 +0000 (20:02 +0100)]
fdisk: rename try() and tryprocpt() functions
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Francesco Cosoleto [Thu, 15 Dec 2011 19:02:40 +0000 (20:02 +0100)]
fdisk: drop one parameter from try() function
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Francesco Cosoleto [Thu, 15 Dec 2011 19:02:39 +0000 (20:02 +0100)]
fdisk: move code for renaming SGI bootfile to SGI module
This moves the code for renaming SGI bootfile from command_prompt() to
sgi_set_bootfilename() function.
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Francesco Cosoleto [Thu, 15 Dec 2011 19:02:38 +0000 (20:02 +0100)]
fdisk: remove possibly_osf_label variable that is only assigned
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Francesco Cosoleto [Thu, 15 Dec 2011 19:02:37 +0000 (20:02 +0100)]
fdisk: remove unused 'require' member in enum action
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Francesco Cosoleto [Thu, 15 Dec 2011 19:02:06 +0000 (20:02 +0100)]
agetty: add static and const qualifiers
Remove also a static qualifier in main() function.
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Francesco Cosoleto [Thu, 15 Dec 2011 19:01:40 +0000 (20:01 +0100)]
libblkid: minor docs changes
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Davidlohr Bueso [Wed, 14 Dec 2011 17:56:57 +0000 (18:56 +0100)]
wipefs: use xalloc lib
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Davidlohr Bueso [Mon, 12 Dec 2011 22:52:26 +0000 (23:52 +0100)]
lists: add list sorting routine
We need a list sorting function, just to mention one example user that could
benefit is the lib/tt code to sort columns.
This patch adds list_sort() which uses the Merge Sort algorithm, behaving
nicely in O(nlog(n)), heavily based on the kernel's implementation[1]. The
private data (void *priv) passed to the comparison function as been removed to
adopt a qsort(3)-like syntax, and IMHO we don't really need it anyways.
[1]: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob;f=lib/list_sort.c;h=
d7325c6b103f0be078ff3672c35c468ed35738f1 ;hb=HEAD
[kzak@redhat.com: - use size_t in list_sort()]
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Dave Reisner [Sun, 11 Dec 2011 18:58:05 +0000 (13:58 -0500)]
findmnt: support alternative location of fstab
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Dave Reisner [Sun, 11 Dec 2011 18:58:04 +0000 (13:58 -0500)]
findmnt: use warnx for libmnt error callback
libmount doesn't set errno appropriately here:
$ findmnt -s
findmnt: /etc/fstab: parse error at line 20: Success
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Jari Aalto [Sun, 11 Dec 2011 11:09:31 +0000 (13:09 +0200)]
setterm: order man page items alphabetically
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
Davidlohr Bueso [Thu, 8 Dec 2011 20:19:19 +0000 (21:19 +0100)]
prlimit: return proper type
The add_prlim() function's definition currently returns a bogus structure.
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Karel Zak [Fri, 9 Dec 2011 13:08:02 +0000 (14:08 +0100)]
docs: add hwclock -c to TODO file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 8 Dec 2011 13:22:04 +0000 (14:22 +0100)]
partx: don't treat empty partition table as error
Phillip wrote:
If a partition table was detected, but it had no partitions
in it, a poorly worded error message was printed and further
action halted. For partx -a, this gave an unnecessary error.
Reported-by: Phillip Susi <psusi@cfl.rr.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 8 Dec 2011 13:14:28 +0000 (14:14 +0100)]
partx: cleanup usage() and man page, add undocumented --verbose
Signed-off-by: Karel Zak <kzak@redhat.com>
Phillip Susi [Mon, 5 Dec 2011 20:02:51 +0000 (15:02 -0500)]
partx: don't print error when partition already doesn't exist
If you run partx -d to delete partitions, and there are gaps
in the sequence ( partition 2 exists, but 1 doesn't ), then it
would complain that it had errors trying to remove the partitions
that already don't exist. Changed to ignore the error when
errno == ENXIO.
Signed-off-by: Phillip Susi <psusi@cfl.rr.com>
Karel Zak [Thu, 8 Dec 2011 10:39:05 +0000 (11:39 +0100)]
agetty: don't use log_err() for non-fatal errors
The TIOCSCTTY ioctl requires that caller is session leader -- so it
depends on initd (or we have to add setsid() to aggety). It seems that the
traditional way is to setup tty in agetty and session in login(1).
It means that all session related things (TIOCSCTTY, vhangup, ...) in the
command agetty should be optional. (Note that vhangup() is called when
--hangup is explicitly specified on command line, so log_err() makes
sense there.)
Reported-by: Andrew Walrond <andrew@walrond.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 8 Dec 2011 09:20:22 +0000 (10:20 +0100)]
logger: fix remote logging
Reported-by: Hervé Quillévéré <herve_quillevere@herveq.tk>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 2 Dec 2011 17:31:20 +0000 (18:31 +0100)]
build-sys: add log_err to smatch non-return functions
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Thu, 1 Dec 2011 22:10:21 +0000 (23:10 +0100)]
build-sys: check HAVE_ definitions with #ifdef [smatch scan]
Fix to `warning: undefined preprocessor identifier' messages.
[kzak@redhat.com: replace "#ifdef XXX #ifdef YYY" with
"#if defined(XXX) && defined(YYY)"]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Thu, 1 Dec 2011 22:10:21 +0000 (23:10 +0100)]
build-sys: check HAVE_ definitions with #ifdef [smatch scan]
Fix to `warning: undefined preprocessor identifier' messages.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Thu, 1 Dec 2011 22:10:20 +0000 (23:10 +0100)]
build-sys: add missing headers to dist
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Fri, 2 Dec 2011 17:20:34 +0000 (18:20 +0100)]
libmount: add support for mount -a --fork
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 1 Dec 2011 17:28:42 +0000 (18:28 +0100)]
libmount: add "+" prefix for options pattern (e.g findmnt -O)
Examples:
* findmnt --fstab -O noauto
Returns all entries where is not "auto" option (including entries
with "noauto" option.
* findmnt --fstab -O +noauto
Returns all entries where is literally "noauto" option.
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=758457
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 1 Dec 2011 15:47:26 +0000 (16:47 +0100)]
libmount: add -a to umount(8) sample
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 1 Dec 2011 15:45:53 +0000 (16:45 +0100)]
libmount: add mnt_context_umount_next()
This is "umount -a" backend.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 1 Dec 2011 15:42:42 +0000 (16:42 +0100)]
libmount: improve verbose message
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 29 Nov 2011 18:02:42 +0000 (19:02 +0100)]
Merge branch 'login-utils' of https://github.com/kerolasa/lelux-utiliteetit
* 'login-utils' of https://github.com/kerolasa/lelux-utiliteetit: (23 commits)
last: fix few compiler warnings
setpwnam: remove non-ANSI definitions [smatch scan]
last: possible buffer overflow fixed [smatch scan]
vipw: fix coding style
setpwnam: fix coding style
selinux_utils: fix coding style
newgrp: fix coding style
logindefs: fix coding style
islocal: fix coding style
chsh: fix coding style
chfn: fix coding style
chfn, setpwnam: let config.h be in control of extensions in use
chfn, chsh: new file pamfail.h for error printing
chsh: build bug: do not override config.h definition
chfn, chsh, setpwnam: get true/false from stdbool.h
login: add version printing option
newgrp: add version and help options
vipw: stop printing non-sense version string
vipw: use libc error printing facilities
chsh: use libc error printing facilities
...
Karel Zak [Tue, 29 Nov 2011 18:02:27 +0000 (19:02 +0100)]
libmount: add new exprimental umount(8)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 29 Nov 2011 17:21:49 +0000 (18:21 +0100)]
include,optutils: add option_to_longopt()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 29 Nov 2011 17:06:21 +0000 (18:06 +0100)]
libmount: use USAGE_* from mount(8) sample
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Sat, 19 Nov 2011 20:52:38 +0000 (21:52 +0100)]
last: fix few compiler warnings
Calling abort() as default seems appropriate as the default should be
impossible to reach.
last.c:355:3: warning: switch missing default case [-Wswitch-default]
And simple line removals.
last.c:110:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls]
last.c:111:15: warning: redundant redeclaration of 'optarg' [-Wredundant-decls]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 13 Nov 2011 20:21:39 +0000 (21:21 +0100)]
setpwnam: remove non-ANSI definitions [smatch scan]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 13 Nov 2011 20:20:13 +0000 (21:20 +0100)]
last: possible buffer overflow fixed [smatch scan]
last.c +447 ttyconv(11) error: buffer overflow '(arg)' 3 <= 3
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 13 Nov 2011 19:03:48 +0000 (20:03 +0100)]
vipw: fix coding style
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 13 Nov 2011 18:54:14 +0000 (19:54 +0100)]
setpwnam: fix coding style
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 13 Nov 2011 18:46:03 +0000 (19:46 +0100)]
selinux_utils: fix coding style
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 13 Nov 2011 18:40:23 +0000 (19:40 +0100)]
newgrp: fix coding style
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 13 Nov 2011 18:34:46 +0000 (19:34 +0100)]
logindefs: fix coding style
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 13 Nov 2011 18:32:10 +0000 (19:32 +0100)]
islocal: fix coding style
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 23 Nov 2011 22:04:12 +0000 (23:04 +0100)]
chsh: fix coding style
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 23 Nov 2011 21:57:31 +0000 (22:57 +0100)]
chfn: fix coding style
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 23 Nov 2011 21:36:57 +0000 (22:36 +0100)]
chfn, setpwnam: let config.h be in control of extensions in use
The autotools will set _GNU_SOURCE which removes necessity to have
any _*_SOURCE definition in *.c files.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 13 Nov 2011 17:18:33 +0000 (18:18 +0100)]
chfn, chsh: new file pamfail.h for error printing
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Tue, 29 Nov 2011 16:36:39 +0000 (17:36 +0100)]
libmount: add sanitize_env() to mount(8) sample
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 29 Nov 2011 15:58:44 +0000 (16:58 +0100)]
libmount: remove magic constatnt from mount(8)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 29 Nov 2011 13:57:28 +0000 (14:57 +0100)]
docs: add x-mount-mkdir to TODO file
Signed-off-by: Karel Zak <kzak@redhat.com>
Dennis Jensen [Thu, 24 Nov 2011 17:55:57 +0000 (18:55 +0100)]
agetty: map NL to CR-NL on output in initial termiossettings
From: Jacoby Hickerson <hickersonjl@gmail.com>
Signed-off-by: Dennis Jensen <dennis.h.jensen@siemens.com>
Karel Zak [Mon, 28 Nov 2011 09:23:04 +0000 (10:23 +0100)]
Merge branch 'master' of https://github.com/maurizio-lombardi/util-linux
* 'master' of https://github.com/maurizio-lombardi/util-linux:
mkfs.minix: The total number of zones is limited to 65536 only on V1 filesystems
mkfs.minix: Some bug fixes:
mkfs.minix: The s_blocksize field of the MinixV3 superblock must be initialized with a valid block size, not the total number of blocks of the device!
mkfs.minix: inode numbers are 32-bit wide in V3 filesystems
mkfs.minix: In Minix V3 filesystems the maximum filename lenght is 60 chars and the dirsize is 64 bytes.
mkfs.minix: Fix super_set_nzones()
mkfs.minix: remove redundant code
Karel Zak [Mon, 28 Nov 2011 09:19:32 +0000 (10:19 +0100)]
libmount: fix compiler warning [-Wimplicit-function-declaration]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 25 Nov 2011 09:38:16 +0000 (10:38 +0100)]
do: fix czech LABEL= translation
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Sun, 13 Nov 2011 16:47:00 +0000 (17:47 +0100)]
chsh: build bug: do not override config.h definition
The ONLY_LISTED_SHELLS is defined by --disable-chsh-only-listed
configuration option.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 13 Nov 2011 16:36:55 +0000 (17:36 +0100)]
chfn, chsh, setpwnam: get true/false from stdbool.h
Requires C99, which should not be a problem.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 13 Nov 2011 16:14:51 +0000 (17:14 +0100)]
login: add version printing option
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 13 Nov 2011 14:56:20 +0000 (15:56 +0100)]
newgrp: add version and help options
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 13 Nov 2011 14:14:33 +0000 (15:14 +0100)]
vipw: stop printing non-sense version string
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 13 Nov 2011 14:12:44 +0000 (15:12 +0100)]
vipw: use libc error printing facilities
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 13 Nov 2011 13:41:38 +0000 (14:41 +0100)]
chsh: use libc error printing facilities
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 13 Nov 2011 13:31:03 +0000 (14:31 +0100)]
chsh: align with howto-usage-function.txt
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 13 Nov 2011 13:17:25 +0000 (14:17 +0100)]
chfn: use libc error printing facilities
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 13 Nov 2011 13:06:24 +0000 (14:06 +0100)]
chfn: align with howto-usage-function.txt
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Wed, 23 Nov 2011 14:19:20 +0000 (15:19 +0100)]
fallocate: clean up fallbacks for FALLOC_FL_* flags
Reported-by: Voelker, Bernhard <bernhard.voelker@siemens-enterprise.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 23 Nov 2011 13:10:51 +0000 (14:10 +0100)]
tests: add mkfs.carmfs test for small FS with duplicate files
Signed-off-by: Karel Zak <kzak@redhat.com>
Arnaud Mouiche [Thu, 17 Nov 2011 17:03:04 +0000 (18:03 +0100)]
small bug in mkfs.cramfs + patch
mkfs.cramfs on version v2.17.2 has a small bug when dealing with very small
filesystems. look at upstream code on git, and the issue is still here.
ex:
$ cd /tmp
$ mkdir content
$ echo hello > content/a
$ echo hello > content/b
$ mkfs.cramfs content content.cramfs
not enough space allocated for ROM image (4090 allocated, 4096 used)
Here is a patch for fixing (simply rounding to page size AFTER eleminating
doubles).
Signed-off-by: Arnaud Mouiche <arnaud.mouiche@invoxia.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Cong Wang [Fri, 18 Nov 2011 08:51:37 +0000 (16:51 +0800)]
fallocate: add FALLOC_FL_PUNCH_HOLE support
Recent Linux kernel supports FALLOC_FL_PUNCH_HOLE in fallocate(2).
This patch adds FALLOC_FL_PUNCH_HOLE support to fallocate utility,
by introducing a new option -p|--punch-hole.
[kzak@redhat.com: - fix merge conflict in fallocate.1]
Cc: Karel Zak <kzak@redhat.com>
Cc: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Jim Meyering [Thu, 17 Nov 2011 07:44:48 +0000 (08:44 +0100)]
prlimit: s/amount/number/
Bernhard Voelker [Wed, 16 Nov 2011 16:57:27 +0000 (17:57 +0100)]
prlimit: add support for executing a command
prlimit.c: Alternatively to applying the limits to an existing process via the
--pid option, allow a command to be executed. Adapted usage() accordingly.
prlimit.1: mention new syntax.
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
Francesco Cosoleto [Tue, 22 Nov 2011 15:12:42 +0000 (16:12 +0100)]
libblkid: fix mac partition detection
This fixes the buffer length passed to blkid_probe_get_buffer() calls,
and the block size byte order (on little-endian systems).
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Masatake YAMATO [Mon, 14 Nov 2011 13:47:53 +0000 (22:47 +0900)]
mount: enable fstab.d
This patch makes mount command read fstab.d/*.fstab if the command
is built with --enable-libmount-mount.
[kzak@redhat.com: - add some info to fstab.5 and mount.8 man pages
- use error callback for tab parser]
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Maurizio Lombardi [Mon, 21 Nov 2011 19:30:40 +0000 (20:30 +0100)]
mkfs.minix: The total number of zones is limited to 65536 only on V1 filesystems
Maurizio Lombardi [Mon, 21 Nov 2011 19:16:57 +0000 (20:16 +0100)]
mkfs.minix: Some bug fixes:
- Fix root inode initialization
- In V3 filesystems the maximum number of inodes is not 65536 but 2^32.
Maurizio Lombardi [Mon, 21 Nov 2011 19:00:48 +0000 (20:00 +0100)]
mkfs.minix: The s_blocksize field of the MinixV3 superblock must be
initialized with a valid block size, not the total number of blocks
of the device!