Commit graph

6464 commits

Author SHA1 Message Date
Sami Kerola
564dd4af5d fsck.minix: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:26:07 +02:00
Sami Kerola
83f210e8f9 fsck.cramfs: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:26:06 +02:00
Sami Kerola
3757e57f7b wdctl: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:26:06 +02:00
Sami Kerola
835d1b7d2e sfdisk: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:26:06 +02:00
Sami Kerola
c8e8b916ab cfdisk: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:26:06 +02:00
Sami Kerola
dd79e7c9d0 resizepart: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:26:06 +02:00
Sami Kerola
8387429006 partx: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:26:06 +02:00
Sami Kerola
5efee9d414 fdformat: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:26:06 +02:00
Sami Kerola
f416563b28 include: add close_fd() for noticing write errors before close()
Essentially this helper function is similar to close_stream(), but for
file descriptors.

When a file descriptors are close()'d status of write is often
overlooked.  The close_fd() will try to determine what happen to writes
with fsync() before closing the file descriptor.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:26:06 +02:00
Sami Kerola
8d21d9ab8f libblkid: check writing to a file was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:26:06 +02:00
Sami Kerola
944ab4b931 pg: check writing to a file was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:26:06 +02:00
Sami Kerola
1aba8336c0 agetty: check writing to a file was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:26:06 +02:00
Sami Kerola
f99b58b384 setpriv: check writing to a file was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:26:06 +02:00
Sami Kerola
1d3762ee53 cfdisk: check writing to a file was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:26:06 +02:00
Sami Kerola
af6d266307 setsid: exit when control terminal cannot be set
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:26:01 +02:00
Sami Kerola
cdeb4292e9 hexdump: add long options to the command
Includes update to bash completion, and manual as well.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:26:00 +02:00
Sami Kerola
637fa4c6ce setpriv: allow login and group name option arguments
For an average user names are easier to use than uid and gid numbers.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:25:59 +02:00
Sami Kerola
930954d87a utmpdump: add option to write to a file
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:25:58 +02:00
Sami Kerola
d0ed8dc2b9 blkid, hwclock, ldattach: use program_invocation_short_name
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:25:57 +02:00
Sami Kerola
2211b13ed8 bash-completion: add mount and umount
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:25:54 +02:00
Yuri Chornoivan
ef75bc880e Fix various typos 2013-04-26 12:50:03 +02:00
Karel Zak
1666c15588 wipefs: clean up code
This is C, use int & bits for boolean stuff rather than army of
variables.

Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-26 12:43:31 +02:00
Ondrej Oprala
7e658c15a2 wipefs: add --backup
[kzak@redhat.com: - don't wipe if failed to create a backup file
                  - use ts_scsi_debug_init in the regression tests]

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-26 12:27:37 +02:00
Karel Zak
0adc576dec tests: partx tests cleanup
* use ts_scsi_debug_init

 * use headers in output

 * use udevadm

Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-26 10:38:48 +02:00
Ondrej Oprala
3a8f26bdcc tests: add partx regression tests
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-04-26 10:03:37 +02:00
Karel Zak
d80aa81d6f build-sys: release++ (v2.23)
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-25 11:53:41 +02:00
Karel Zak
4c99c7f11d docs: update v2.23-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-25 11:52:32 +02:00
Karel Zak
1fb6efb922 docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-25 11:50:12 +02:00
Karel Zak
6249b53a9f po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-25 11:46:46 +02:00
Yuri Chornoivan
7ade4edaeb po: update uk.po (from translationproject.org) 2013-04-25 11:24:08 +02:00
Jakub Bogusz
a821d9f265 po: update pl.po (from translationproject.org) 2013-04-25 11:24:08 +02:00
Benno Schulenberg
cec35afaa2 po: update nl.po (from translationproject.org) 2013-04-25 11:24:08 +02:00
Tomislav Krznar
a6f665b25b po: update hr.po (from translationproject.org) 2013-04-25 11:24:08 +02:00
David Prévot
7d1e28c631 po: update fr.po (from translationproject.org) 2013-04-25 11:24:07 +02:00
Joe Hansen
921e507526 po: update da.po (from translationproject.org) 2013-04-25 11:24:07 +02:00
Petr Písař
0246973ef9 po: update cs.po (from translationproject.org) 2013-04-25 11:24:07 +02:00
Karel Zak
d426ddbd5f tests: make mount tests backwardly compatible with deprecated-mount/
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-25 11:07:05 +02:00
Karel Zak
119c7125cb mount: (deprecated) check loopcxt_ return values
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-25 11:06:12 +02:00
Karel Zak
b154410cb1 mount: (deprecated) remove duplicate xstrndup()
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-25 11:05:33 +02:00
Karel Zak
0bcdf7e1a2 build-sys: use 'check' for all utils with dependencies
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-25 09:26:43 +02:00
Davidlohr Bueso
c53121bac0 AUTHORS: fix prlimit typo
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2013-04-25 09:23:41 +02:00
Davidlohr Bueso
f481ad7172 libfdisk: gpt: remove leftover comments
I must have left those in some commit.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2013-04-25 09:23:41 +02:00
Mike Frysinger
caf60f22fb rtcwake: pass -h to shutdown
The sysvinit shutdown requires you use -h when using -H or -P.
Other inits just don't seem to care.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-04-25 09:23:40 +02:00
Samuel Thibault
8867ac208a build-sys: fix non-linux build
Make enabling fdformat depend on being a linux build.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2013-04-25 09:23:40 +02:00
Andrii Bordunov
6a5e45180b dmesg: minor cleanup of EXCL_xxx_ERR macros
Delete EXCL_ACT_ERR and EXCL_SYS_ERR defines:
usage is removed in 43d2eeef5d:
    "dmesg: use err_exclusive_options()"

Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-23 14:40:47 +02:00
Karel Zak
ece44f19f4 rtcwake: add support for "freeze" mode
Supported by Linux since 3.9 (upstream commit
7e73c5ae6e7991a6c01f6d096ff8afaef4458c36).

Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-23 13:20:15 +02:00
Karel Zak
f697d61b6e umount: use devno to identify --all-target devices
# mount -t tmpfs tmp /mnt/A
 # mount --bind /mnt/A /mnt/B
 # mount -t tmpfs tmp /mnt/C

the command:

  umount --all-targets /mnt/A

has to umount only A and B, but not C. The C is a another filesystem.

Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-23 10:25:02 +02:00
Karel Zak
c0d14b0985 libfdisk: (gpt) fix EFI UUID usage
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-18 15:45:25 +02:00
Karel Zak
76f17cf260 fdisk: fix list types
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-18 14:38:49 +02:00
Karel Zak
f67c524e59 libfdisk: (gpt) fix valid_pmbr()
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-18 12:44:00 +02:00