]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
11 years agotests: test corruted GPT headers
Karel Zak [Wed, 23 Oct 2013 08:44:58 +0000 (10:44 +0200)] 
tests: test corruted GPT headers

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: (gpt) recover from corrupted primary/backup PT
Karel Zak [Wed, 23 Oct 2013 08:27:39 +0000 (10:27 +0200)] 
libfdisk: (gpt) recover from corrupted primary/backup PT

We already have all code to support this feature, unfortunately
it was not used in gpt_probe_label()...

References: https://bugzilla.redhat.com/show_bug.cgi?id=1022217
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodocs: update TODO, wipe check for fdisk already implemented
Karel Zak [Fri, 18 Oct 2013 11:53:14 +0000 (13:53 +0200)] 
docs: update TODO, wipe check for fdisk already implemented

Note that rather than implement wipe command in fdisk it's better
inform users to call wipefs(8).

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: warn about obsolete signatures on the device
Karel Zak [Fri, 18 Oct 2013 11:52:18 +0000 (13:52 +0200)] 
libfdisk: warn about obsolete signatures on the device

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: reorder intro warnings
Karel Zak [Fri, 18 Oct 2013 11:52:10 +0000 (13:52 +0200)] 
fdisk: reorder intro warnings

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: (gpt) add A,B,R,S expert commands to modify attributes
Karel Zak [Wed, 16 Oct 2013 13:30:43 +0000 (15:30 +0200)] 
fdisk: (gpt) add A,B,R,S expert commands to modify attributes

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: support extended attributes modification
Karel Zak [Wed, 16 Oct 2013 13:28:32 +0000 (15:28 +0200)] 
libfdisk: support extended attributes modification

 * GPT attributes defined by standard (e.g. legacy boot etc.)
 * attributes (bits 48-63) reserved for GUID specific attributes (used for example
   by MS Windows)

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: (dos) be more verbose when change bootable flag
Karel Zak [Wed, 16 Oct 2013 10:13:34 +0000 (12:13 +0200)] 
libfdisk: (dos) be more verbose when change bootable flag

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: fix printf stuff
Karel Zak [Tue, 15 Oct 2013 11:26:12 +0000 (13:26 +0200)] 
fdisk: fix printf stuff

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: fix printf stuff
Karel Zak [Tue, 15 Oct 2013 11:26:04 +0000 (13:26 +0200)] 
libfdisk: fix printf stuff

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: add 'M' to access GPT nested protective/hybrid MBR
Karel Zak [Thu, 10 Oct 2013 10:43:10 +0000 (12:43 +0200)] 
fdisk: add 'M' to access GPT nested protective/hybrid MBR

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: support nested MBR
Karel Zak [Thu, 10 Oct 2013 10:42:18 +0000 (12:42 +0200)] 
libfdisk: support nested MBR

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agotests: add TERM= to all cal(1) tests
Karel Zak [Tue, 22 Oct 2013 10:03:52 +0000 (12:03 +0200)] 
tests: add TERM= to all cal(1) tests

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agocal: fix coding style
Karel Zak [Tue, 22 Oct 2013 09:54:42 +0000 (11:54 +0200)] 
cal: fix coding style

 - mostly space around operators
 - split yearly(), move weeknum stuff to append_wnum()

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agocal: remove optional from short arg -w
Tommi Kyntola [Mon, 7 Oct 2013 17:57:28 +0000 (20:57 +0300)] 
cal: remove optional from short arg -w

The long option --week still has the optional argument as --week=<wnum>

This was suggested on the mailing list by Padraig Brady and I do agree with that.
Actually, the whole idea of --week=<wnum> came from him.

Signed-off-by: Tommi Kyntola <kynde@iki.fi>
11 years agocal: added argument option for -w|--week to display that week
Tommi Kyntola [Mon, 7 Oct 2013 11:32:23 +0000 (14:32 +0300)] 
cal: added argument option for -w|--week to display that week

Because many years have two sections of week 52 or 53, the week that
this argument points to is the one that starts during that year (when available).
The week number in argument is also highlighted in addition to possibly visible
current/defined date highlighting.

Signed-off-by: Tommi Kyntola <kynde@iki.fi>
11 years agocal: various tests for week numbers
Tommi Kyntola [Sun, 6 Oct 2013 18:45:53 +0000 (21:45 +0300)] 
cal: various tests for week numbers

Current tests were replicated with week numbers
and some additional tests for week numbering corner cases
were added, too.

Signed-off-by: Tommi Kyntola <kynde@iki.fi>
11 years agocal: added -w|--week for showing week numbers
Tommi Kyntola [Sun, 6 Oct 2013 18:44:45 +0000 (21:44 +0300)] 
cal: added -w|--week for showing week numbers

Added week numbers both in ISO-6801 and North America numbering.
The mode is determined by first day of the week, Monday
for ISO and Sunday for North America mode.

ISO week numbers are defined as the first Thursday being part of week 1.
The North America numbering is defined, at least by gcal, as first Sunday
being in the first week.

Signed-off-by: Tommi Kyntola <kynde@iki.fi>
11 years agocal: added two missing tests
Tommi Kyntola [Sat, 5 Oct 2013 18:53:17 +0000 (21:53 +0300)] 
cal: added two missing tests

Bigyear and Sep1752 lacked their were missing their last intended tests
along with their expected outputs.

Signed-off-by: Tommi Kyntola <kynde@iki.fi>
11 years agobuild-sys: release++ (v2.24) v2.24
Karel Zak [Mon, 21 Oct 2013 12:46:27 +0000 (14:46 +0200)] 
build-sys: release++ (v2.24)

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodocs: update v2.24-ReleaseNotes
Karel Zak [Mon, 21 Oct 2013 12:44:50 +0000 (14:44 +0200)] 
docs: update v2.24-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agosu: add info about pam_lastlog to su.1
Karel Zak [Mon, 21 Oct 2013 12:27:30 +0000 (14:27 +0200)] 
su: add info about pam_lastlog to su.1

References: https://bugzilla.redhat.com/show_bug.cgi?id=1021108
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agopo: merge changes
Karel Zak [Mon, 21 Oct 2013 11:20:53 +0000 (13:20 +0200)] 
po: merge changes

Sorry, this makes one message from -rc2 obsolete, but it's more
important to use proper conversion specifiers than translate
this one rarely used message.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: (gpt) %ld -> %ju in verify function
Karel Zak [Mon, 21 Oct 2013 11:14:04 +0000 (13:14 +0200)] 
libfdisk: (gpt) %ld -> %ju in verify function

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agopo: merge changes
Karel Zak [Mon, 21 Oct 2013 10:59:07 +0000 (12:59 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agopo: update vi.po (from translationproject.org)
Trần Ngọc Quân [Mon, 21 Oct 2013 10:53:58 +0000 (12:53 +0200)] 
po: update vi.po (from translationproject.org)

11 years agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Mon, 21 Oct 2013 10:53:58 +0000 (12:53 +0200)] 
po: update uk.po (from translationproject.org)

11 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Mon, 21 Oct 2013 10:53:58 +0000 (12:53 +0200)] 
po: update pl.po (from translationproject.org)

11 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Mon, 21 Oct 2013 10:53:58 +0000 (12:53 +0200)] 
po: update nl.po (from translationproject.org)

11 years agopo: update fr.po (from translationproject.org)
David Prévot [Mon, 21 Oct 2013 10:53:58 +0000 (12:53 +0200)] 
po: update fr.po (from translationproject.org)

11 years agopo: update fi.po (from translationproject.org)
Lauri Nurmi [Mon, 21 Oct 2013 10:53:58 +0000 (12:53 +0200)] 
po: update fi.po (from translationproject.org)

11 years agopo: update da.po (from translationproject.org)
Joe Hansen [Mon, 21 Oct 2013 10:53:58 +0000 (12:53 +0200)] 
po: update da.po (from translationproject.org)

11 years agopo: update cs.po (from translationproject.org)
Petr Písař [Mon, 21 Oct 2013 10:53:58 +0000 (12:53 +0200)] 
po: update cs.po (from translationproject.org)

11 years agofdisk: fix man warning
Karel Zak [Mon, 21 Oct 2013 10:50:18 +0000 (12:50 +0200)] 
fdisk: fix man warning

error: run: man --warnings=all fdisks/fdisk.8 >/dev/null
<standard input>:209: cannot use a space as a starting delimiter

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agotests: add nologin to build tests
Karel Zak [Mon, 21 Oct 2013 10:47:25 +0000 (12:47 +0200)] 
tests: add nologin to build tests

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: add Intel Rapid Start Technology GUID
Karel Zak [Fri, 18 Oct 2013 10:05:35 +0000 (12:05 +0200)] 
libfdisk: add Intel Rapid Start Technology GUID

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodocs: update TODO
Karel Zak [Fri, 18 Oct 2013 09:35:02 +0000 (11:35 +0200)] 
docs: update TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofsck.cramfs: add LC_CTYPE
Karel Zak [Fri, 18 Oct 2013 08:57:20 +0000 (10:57 +0200)] 
fsck.cramfs: add LC_CTYPE

Maybe it would be possible to use LC_ALL, but it requires to review
the code to check if there is no any sensitive code.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agopg: use LC_ALL
Karel Zak [Fri, 18 Oct 2013 08:57:11 +0000 (10:57 +0200)] 
pg: use LC_ALL

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agosetpriv: use LC_ALL
Karel Zak [Fri, 18 Oct 2013 08:56:56 +0000 (10:56 +0200)] 
setpriv: use LC_ALL

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoraw: use LC_ALL
Karel Zak [Fri, 18 Oct 2013 08:56:40 +0000 (10:56 +0200)] 
raw: use LC_ALL

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agonsenter: unshare: use LC_ALL
Karel Zak [Fri, 18 Oct 2013 08:19:15 +0000 (10:19 +0200)] 
nsenter: unshare: use LC_ALL

Reported-by: Trần Ngọc Quân <vnwildman@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: (bsd) leave context if new disklabel unwanted
Karel Zak [Wed, 16 Oct 2013 10:03:48 +0000 (12:03 +0200)] 
libfdisk: (bsd) leave context if new disklabel unwanted

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodocs: update TODO
Karel Zak [Wed, 16 Oct 2013 09:08:18 +0000 (11:08 +0200)] 
docs: update TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agocal: fix compiler warning on systems without term libs
Karel Zak [Tue, 15 Oct 2013 13:44:40 +0000 (15:44 +0200)] 
cal: fix compiler warning on systems without term libs

Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agomore: fix warning when compiled --without-ncurses
Karel Zak [Tue, 15 Oct 2013 11:29:19 +0000 (13:29 +0200)] 
more: fix warning when compiled --without-ncurses

Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agocal: fix warning when compiled --without-ncurses
Karel Zak [Tue, 15 Oct 2013 11:29:19 +0000 (13:29 +0200)] 
cal: fix warning when compiled --without-ncurses

Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: fix printf stuff
Karel Zak [Tue, 15 Oct 2013 10:46:35 +0000 (12:46 +0200)] 
fdisk: fix printf stuff

Unfortunately, fdisk_warn/info/.. function was not marked by
printf __attribute__.

We don't want to break gettext stuff now, so all compiler warnings
have been fixed by casts. This is temporary solution, after release it
will be necessary to fix all the strings.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: (dos) all disklabel locate function
Karel Zak [Tue, 15 Oct 2013 10:17:03 +0000 (12:17 +0200)] 
libfdisk: (dos) all disklabel locate function

.. to make 'D'ump expert command usable also for MBR.

Yes, we have -rc2 now and this is a new feature, but it's tiny change
without any interaction to the rest of the code and without gettext stuff.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodocs: tweak formatting and grammar of the ipcrm man page
Benno Schulenberg [Mon, 14 Oct 2013 20:19:03 +0000 (22:19 +0200)] 
docs: tweak formatting and grammar of the ipcrm man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agodocs: tweak wording and formatting of unshare and nsenter man pages
Benno Schulenberg [Mon, 14 Oct 2013 20:02:00 +0000 (22:02 +0200)] 
docs: tweak wording and formatting of unshare and nsenter man pages

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agodocs: standardize the phrases for --help and --version in all man pages
Benno Schulenberg [Mon, 14 Oct 2013 19:34:39 +0000 (21:34 +0200)] 
docs: standardize the phrases for --help and --version in all man pages

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agodocs: format, grammarize, and standardize the wall man page
Benno Schulenberg [Mon, 14 Oct 2013 18:48:22 +0000 (20:48 +0200)] 
docs: format, grammarize, and standardize the wall man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agodocs: improve formatting and wording of the getopt man page
Benno Schulenberg [Sun, 13 Oct 2013 19:52:07 +0000 (21:52 +0200)] 
docs: improve formatting and wording of the getopt man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agodocs: sort the options in the logger man page alphabetically
Benno Schulenberg [Sun, 13 Oct 2013 19:01:07 +0000 (21:01 +0200)] 
docs: sort the options in the logger man page alphabetically

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agodocs: improve a bit the wording on the logger man page
Benno Schulenberg [Sun, 13 Oct 2013 10:54:58 +0000 (12:54 +0200)] 
docs: improve a bit the wording on the logger man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agodocs: improve grammar, wording and formatting of su man page
Benno Schulenberg [Sat, 12 Oct 2013 21:18:29 +0000 (23:18 +0200)] 
docs: improve grammar, wording and formatting of su man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agodocs: sort options in last man page alphabetically
Benno Schulenberg [Sat, 12 Oct 2013 20:33:59 +0000 (22:33 +0200)] 
docs: sort options in last man page alphabetically

And use the option formatting with macros.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agodocs: tweak wording and formatting of last man page
Benno Schulenberg [Sat, 12 Oct 2013 19:49:42 +0000 (21:49 +0200)] 
docs: tweak wording and formatting of last man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agodocs: mention in ReleaseNotes only PO files that were actually updated
Benno Schulenberg [Sat, 12 Oct 2013 18:30:01 +0000 (20:30 +0200)] 
docs: mention in ReleaseNotes only PO files that were actually updated

Also tweak wording a bit and remove a duplicate line.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agolast: remove mistaken -F, --fullnames entry from the man page
Benno Schulenberg [Sat, 12 Oct 2013 17:49:11 +0000 (19:49 +0200)] 
last: remove mistaken -F, --fullnames entry from the man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agodocs: tweak wording, grammar and formatting of fdisk man page
Benno Schulenberg [Sat, 12 Oct 2013 16:43:29 +0000 (18:43 +0200)] 
docs: tweak wording, grammar and formatting of fdisk man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agotextual: remove duplicate mention of '--help' from lsblk help text
Benno Schulenberg [Sat, 12 Oct 2013 09:17:19 +0000 (11:17 +0200)] 
textual: remove duplicate mention of '--help' from lsblk help text

Also improve the alphabetization of the other options.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agotextual: equalize four error messages with already existing ones
Benno Schulenberg [Fri, 11 Oct 2013 13:52:07 +0000 (15:52 +0200)] 
textual: equalize four error messages with already existing ones

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agobuild-sys: fix tinfo congitional
Karel Zak [Mon, 14 Oct 2013 08:18:46 +0000 (10:18 +0200)] 
build-sys: fix tinfo congitional

Reported-by: Andrej Ota <andrej@ota.si>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agobuild-sys: move getopt examples to docdir
Karel Zak [Mon, 14 Oct 2013 08:13:47 +0000 (10:13 +0200)] 
build-sys: move getopt examples to docdir

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agobuild-sys: fix {lib,sbin}dir paths
Karel Zak [Mon, 14 Oct 2013 07:51:09 +0000 (09:51 +0200)] 
build-sys: fix {lib,sbin}dir paths

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agobuild-sys: release++ (v2.24-rc2) v2.24-rc2
Karel Zak [Fri, 11 Oct 2013 11:11:45 +0000 (13:11 +0200)] 
build-sys: release++ (v2.24-rc2)

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodocs: update v2.24-ReleaseNotes
Karel Zak [Fri, 11 Oct 2013 11:10:34 +0000 (13:10 +0200)] 
docs: update v2.24-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodocs: update AUTHORS file
Karel Zak [Fri, 11 Oct 2013 11:03:13 +0000 (13:03 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agopo: merge changes
Karel Zak [Fri, 11 Oct 2013 11:00:44 +0000 (13:00 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agocal: fix gettext warning
Karel Zak [Fri, 11 Oct 2013 10:53:56 +0000 (12:53 +0200)] 
cal: fix gettext warning

 /usr/bin/xgettext: Non-ASCII comment at or before misc-utils/cal.c:473.
                   Please specify the source encoding through --from-code.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agopo: update zh_CN.po (from translationproject.org)
Wylmer Wang [Fri, 11 Oct 2013 10:40:31 +0000 (12:40 +0200)] 
po: update zh_CN.po (from translationproject.org)

11 years agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Fri, 11 Oct 2013 10:40:31 +0000 (12:40 +0200)] 
po: update uk.po (from translationproject.org)

11 years agopo: update pt_BR.po (from translationproject.org)
Rafael Ferreira [Fri, 11 Oct 2013 10:40:31 +0000 (12:40 +0200)] 
po: update pt_BR.po (from translationproject.org)

11 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Fri, 11 Oct 2013 10:40:31 +0000 (12:40 +0200)] 
po: update pl.po (from translationproject.org)

11 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Fri, 11 Oct 2013 10:40:31 +0000 (12:40 +0200)] 
po: update nl.po (from translationproject.org)

11 years agopo: update fr.po (from translationproject.org)
David Prévot [Fri, 11 Oct 2013 10:40:31 +0000 (12:40 +0200)] 
po: update fr.po (from translationproject.org)

11 years agopo: update cs.po (from translationproject.org)
Petr Písař [Fri, 11 Oct 2013 10:40:31 +0000 (12:40 +0200)] 
po: update cs.po (from translationproject.org)

11 years agolibfdisk: mark label modified for PMBR mismatch
Karel Zak [Fri, 11 Oct 2013 09:50:10 +0000 (11:50 +0200)] 
libfdisk: mark label modified for PMBR mismatch

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: treat size mismatch as a warning, not an error
Karel Zak [Fri, 11 Oct 2013 09:38:29 +0000 (11:38 +0200)] 
libfdisk: treat size mismatch as a warning, not an error

 Based on kernel patch from Doug Anderson <dianders@chromium.org>.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoblockdev: add note about --setbsz usability
Karel Zak [Fri, 11 Oct 2013 09:16:23 +0000 (11:16 +0200)] 
blockdev: add note about --setbsz usability

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoRevert "blockdev: Remove the --setbsz (set blocksize) option which has never worked."
Karel Zak [Fri, 11 Oct 2013 09:05:45 +0000 (11:05 +0200)] 
Revert "blockdev: Remove the --setbsz (set blocksize) option which has never worked."

This reverts commit b1555acc2f709ac4f3b1e6c686a11cadb7b04f72.

It seems that the option is used by kernel guys to test kernel, so
let's keep the option in the blockdev(8) although it's almost useless
in userspace. All we need is to improve docs to make things more
obvious to end users.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibmount: fix mnt_context_is_child() comment
Karel Zak [Fri, 11 Oct 2013 08:51:59 +0000 (10:51 +0200)] 
libmount: fix mnt_context_is_child() comment

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibmount: Fix typo in comment
Namhyung Kim [Wed, 9 Oct 2013 15:17:08 +0000 (00:17 +0900)] 
libmount: Fix typo in comment

s/MNT_OMASK_/MNT_OMODE_/

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
11 years agocal: improve the help text and man page
Pádraig Brady [Wed, 9 Oct 2013 18:44:12 +0000 (20:44 +0200)] 
cal: improve the help text and man page

* misc-utils/cal.c: Add a little doc string, and mention that the
  current month is implicit if not specified.  Also remove mention
  of "current" from two option descriptions as a specific date may
  have been specified.
* misc-utils/cal.1: Likewise.

[kzak@redhat.com: - use fputs and USAGE_SEPARATOR]

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Pádraig Brady <P@draigBrady.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: add -t <type> to enable only specified type
Karel Zak [Wed, 9 Oct 2013 14:02:42 +0000 (16:02 +0200)] 
fdisk: add -t <type> to enable only specified type

In some cases (for example hybrid GPT) it's useful to force fdisk to
read only specified disk label and ignore everything else.

For example:

# fdisk -l /dev/sda

Disk /dev/sda: 149.1 GiB, 160041885696 bytes, 312581808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 3549290F-417C-4941-8503-F7835109B821

Device           Start          End   Size Type
/dev/sda1         2048      2050047  1000M EFI System
/dev/sda2      2050048      6146047     2G Microsoft basic data
/dev/sda3      6146048     26462207   9.7G Linux swap
/dev/sda4     26462208     98142207  34.2G Microsoft basic data
/dev/sda5     98142208    230662143  63.2G Microsoft basic data
/dev/sda6    230662144    312580095  39.1G Microsoft basic data

but when GPT is disabled we can access PMBR:

# fdisk -l -t dos /dev/sda

Disk /dev/sda: 149.1 GiB, 160041885696 bytes, 312581808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device    Boot Start       End    Blocks  Id System
/dev/sda1          1 312581807 156290903+ ee GPT

Reported-by: Craig <util-linux_contact@magister.com.au>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: add API to disable specified label
Karel Zak [Wed, 9 Oct 2013 14:02:33 +0000 (16:02 +0200)] 
libfdisk: add API to disable specified label

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agocytune: fix glush typo in cytune
Rafael Ferreira [Wed, 9 Oct 2013 10:16:09 +0000 (07:16 -0300)] 
cytune: fix glush typo in cytune

Signed-off-by: Rafael Ferreira <rafael.f.f1@gmail.com>
11 years agolosetup: cut the remaining little block of help text into slices too
Benno Schulenberg [Tue, 8 Oct 2013 15:29:20 +0000 (17:29 +0200)] 
losetup: cut the remaining little block of help text into slices too

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agolibfdisk: (gpt) use consistent final period in status messages
Benno Schulenberg [Tue, 8 Oct 2013 15:18:18 +0000 (17:18 +0200)] 
libfdisk: (gpt) use consistent final period in status messages

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agolibfdisk: (dos) improve the grammar of an error message
Benno Schulenberg [Tue, 8 Oct 2013 15:14:38 +0000 (17:14 +0200)] 
libfdisk: (dos) improve the grammar of an error message

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agolibfdisk: (dos) correct the grammar of the disk-identifier prompt
Benno Schulenberg [Tue, 8 Oct 2013 15:11:01 +0000 (17:11 +0200)] 
libfdisk: (dos) correct the grammar of the disk-identifier prompt

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agotextual: standardize some "cannot read" and "seek failed" error messages
Benno Schulenberg [Tue, 8 Oct 2013 15:04:22 +0000 (17:04 +0200)] 
textual: standardize some "cannot read" and "seek failed" error messages

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agotests: use 'btrfs' rather than 'btrfsctl'
Karel Zak [Tue, 8 Oct 2013 15:00:44 +0000 (17:00 +0200)] 
tests: use 'btrfs' rather than 'btrfsctl'

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agotests: update fdisk outputs
Karel Zak [Tue, 8 Oct 2013 14:37:13 +0000 (16:37 +0200)] 
tests: update fdisk outputs

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoblockdev: Remove the --setbsz (set blocksize) option which has never worked.
Richard W.M. Jones [Tue, 8 Oct 2013 08:54:10 +0000 (09:54 +0100)] 
blockdev: Remove the --setbsz (set blocksize) option which has never worked.

This option has never worked.  If you try setting the block size on a
block device, and then read it using --getbsz, you will see that the
block size never changes.

The reason for this is because the block size is specific to the
current file descriptor opening the block device, so the change of
block size only persists for as long as blockdev has the device open,
and is lost once blockdev exits.

Also the block size is not really used anywhere.  Filesystems, for
example, have their own idea of block size and ignore this setting
completely.

(Thanks Masayoshi Mizuma for diagnosing the problem)

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
11 years agovarious: fix mixing declarations and code compiler warnings [smatch]
Sami Kerola [Mon, 7 Oct 2013 22:04:23 +0000 (23:04 +0100)] 
various: fix mixing declarations and code compiler warnings [smatch]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agodocs: improve grammar and wording of the release-schedule text
Benno Schulenberg [Sat, 5 Oct 2013 16:08:59 +0000 (18:08 +0200)] 
docs: improve grammar and wording of the release-schedule text

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agoCOPYING: fix grammar of referring phrase, and indicate location better
Benno Schulenberg [Sat, 5 Oct 2013 16:00:24 +0000 (18:00 +0200)] 
COPYING: fix grammar of referring phrase, and indicate location better

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>