summaryrefslogtreecommitdiffstats
path: root/disk-utils
Commit message (Collapse)AuthorAgeFilesLines
* cfdisk: update man page COLORS sectionKarel Zak2014-05-131-8/+7Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: support colors customizationKarel Zak2014-05-133-13/+24
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/colors: allow to temporary disable colorsKarel Zak2014-05-131-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: fix compiler warning [-Wsign-compare]Karel Zak2014-05-131-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* textual: remove square brackets from around three dotsBenno Schulenberg2014-05-061-3/+3
| | | | | | Also improve some option descriptions here and there. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* swapon, swapheader, mkswap: move swap signature to headerSami Kerola2014-05-061-2/+2
| | | | | | | | | | Both swapon and mkswap need to know what is valid device signature, so share the value. [kzak@redhat.com: - use SWAP_SIGNATURE_SZ properly in write_signature()] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* mkswap: remove legacy swap structureSami Kerola2014-05-061-2/+1Star
| | | | | | | | | | | If software archeolgists want to know how the old, and unused, swap header looked they can dig it from the revision history. [kzak@redhat.com: - use sizeof() for SWAP_HEADER_SIZE] Reference: 4c85aa3a4c26f2a2c33bf16960b548d5bbd5b4bf Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* mkswap, swaplabel: move version number to headerSami Kerola2014-05-042-7/+7
| | | | | | | Corrently only the swap version 1 is supported, which is a magic value so move it to header. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* swaplabel: Improve the typesetting of the manualBjarni Ingi Gislason2014-04-221-3/+3
| | | | | | | | Change macro 'IR' to 'I' if it has only one (italic) argument Remove space at end of lines Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
* sfdisk: Improve the typesetting of the manualBjarni Ingi Gislason2014-04-221-48/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FIXME Units KB, MB, GB, etc. are ambiguous (not necessarily used here) Prefixes kilo, mega, giga, etc. are ambiguous with the unit byte (ditto) Change ' \- ' to ' \(en ' (an en-dash), if it is a dash (pause, separation) Change ' - ' to ' \(en ' (an en-dash), if it is a dash (pause, separation) Change '\-' to '-' (code "hyphen-minus", rendered with the glyph hyphen in troff), if it is a part of a compound name. A minus is not used in words. People using UTF-8 and copy-and-paste can(?) (may?) use "info", "man --ascii" or the command "man" should have an option to display the '-' ("hyphen-minus") in names of options with the code (character name) "hyphen-minus" (u002D) instead of "u2010" (code (character) name "hyphen"). Change '-' to '\-', if it indicates an option Protect a full stop (.), that begins or ends a string, with \& Correct space between sentences to two space characters (or begin each sentence on a new line). Change '--' to '\-\-', if it indicates an option Add \~ (no-break space) around '|' (means "or") Change ' -- ' to ' \(en ' (an en-dash), if it is a dash (pause, separation) Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
* raw: Improve the typesetting of the manualBjarni Ingi Gislason2014-04-221-3/+3
| | | | | | | | Remove space at end of lines Change '-' to '\-', if it indicates an option Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
* partx: Improve the typesetting of the manualBjarni Ingi Gislason2014-04-221-17/+17
| | | | | | | | | | | | | | | | | | | | | | Add a space character around '|' (means "or") Add "(hyphen-minus)" after "\-" to show character name for input Change '\-\-' to '\en', when it is used as a dash (pause, separation) Add a comma before "or" in a series of words (3 or more) Change '-' to '\(en' (an en-dash), if it means a range Protect a full stop (.), that begins or ends a string, with \& Change '--' to '\-\-', if it indicates an option Change '-' to '\-', if it indicates an option Change '-' to '\-', if means a minus Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
* libfdisk: add partitions reorder operation to label APIKarel Zak2014-04-181-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add generic function to check partitions orderKarel Zak2014-04-161-0/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* delpart: minor man page improvementsOndrej Oprala2014-04-141-1/+1
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* cfdisk: minor man page improvementsOndrej Oprala2014-04-141-12/+12
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* addpart: minor man page improvementsOndrej Oprala2014-04-141-4/+4
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* mkswap: Some minor typographical corrections to the manualBjarni Ingi Gislason2014-04-071-7/+7
| | | | | | | | | | | | | | -- changed to \(en (an en-dash) if it is a dash (pause, separation) - changed to \- if it indicates an option A full stop (.), that begins or ends a string, protected with \& Space between sentences corrected to two word spaces -- changed to \-\- if it indicates an option Signed-off-by: Karel Zak <kzak@redhat.com>
* mkfs.minix: Some typographical changes in the manualBjarni Ingi Gislason2014-04-071-4/+4
| | | | | | - between numbers changed to \(en if it is a range Signed-off-by: Karel Zak <kzak@redhat.com>
* mkfs.cramfs: Some typographical corrections to the manualBjarni Ingi Gislason2014-04-071-3/+3
| | | | | | | | | | | | The unit "MB" is ambigous. Use "MiB" if "M" does not mean 10^6. Otherwise add "(M = 10^6)" after it. Changes: Unpaddable space (\ ) added between a number and an unit. A nuber and a unit are not one word. Is "16MB" written "sixteenmegabytes"? Signed-off-by: Karel Zak <kzak@redhat.com>
* mkfs.bfs: One typographical correction to the manualBjarni Ingi Gislason2014-04-071-1/+1
| | | | | | - between numbers changed to \(en (an en-dash) Signed-off-by: Karel Zak <kzak@redhat.com>
* mkfs: Some typographical changes to the manualBjarni Ingi Gislason2014-04-071-1/+3
| | | | | | | | | | - changed to \- if it means an option A full stop (.), that begins or ends a string, protected with \& No line adjustment used for section "SEE ALSO" (.na/.ad) Signed-off-by: Karel Zak <kzak@redhat.com>
* isosize: A few typographical changes to the manualBjarni Ingi Gislason2014-04-071-2/+2
| | | | | | | | | A full stop (.), that begins or ends a string, protected with \& A space between a number and an unit changed to an unpaddable space "\ " Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck.minix: A few typographical corrections to the manualBjarni Ingi Gislason2014-04-071-5/+5
| | | | | | | | - between numbers changed to \(en if it means a range A full stop (.), that begins or ends a string, protected with \& Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck: Some typographical corrections to the manualBjarni Ingi Gislason2014-04-071-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | The word "kilobytes" is ambiguous. Change it to "kibibytes" if kilo does not mean 1000. Otherwise add "(1000 B)" after it. A string, that begins or ends with a full stop (.), protected with \& - changed to \- if it shows an option -- change to \(en if it means a dash (pause, separation) Space between sentences is two word spaces in *roff. Thus it is better to begin each sentence on a new line when the file contains formatting commands --- changed to \(en if it means a dash (pause, separation) Punctuation separated from a word with a space, if it is an argument to a macro like "BR" (two font styles used alternately) Adjusting inhibited for the section "SEE ALSO" with ".na/.ad" Signed-off-by: Karel Zak <kzak@redhat.com>
* fdformat: Some minor change to the manualBjarni Ingi Gislason2014-04-071-1/+1
| | | | | | | | | | | \- changed to - (code "hyphen-minus", rendered with the glyph hyphen in troff) if it is a part of a compound name. A minus is not used in words. People using UTF-8 and copy-and-pase can(?) (may?) use "info", "man --ascii" or the command "man" should have an option to display the - in names of options with the code (character name) "hyphen-minus" (u002D) instead of "u2010" (code (character) name "hyphen") Signed-off-by: Karel Zak <kzak@redhat.com>
* blockdev: Some minor corrections to the manualBjarni Ingi Gislason2014-04-071-9/+9
| | | | | | | | | | | | | | | Macro, that alternately changes the input between two font styles, changed to the macro for one font style change, if there is only one argument Text string, that begins or ends with a full stop (.) protected with \& -- changed to \-\- if it is an option - changed to \(en if it is a dash (pause, seperation) Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: clean up flags usageKarel Zak2014-04-032-7/+6Star
| | | | | | | | | * rename flags functions to scols_table_enable_* * rename *_no_foo() functions to _nofoo() * output formats are mutually exclusive, so don't use flags there * don't assume symbols in scols_new_table(), use scols_table_set_symbols() Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: print table header as boldKarel Zak2014-04-031-2/+14
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: clean up scols usageKarel Zak2014-04-031-7/+29
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* partx: cleanup libsmartcols usageKarel Zak2014-04-031-11/+22
| | | | | | | * more carefully set data * care about return codes Signed-off-by: Karel Zak <kzak@redhat.com>
* partx: use libsmartcolsOndrej Oprala2014-04-032-31/+41
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* Use libsmartcols in libfdisk and cfdiskOndrej Oprala2014-04-032-20/+34
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* libfdisk: remove fdisk_colon()Karel Zak2014-04-011-42/+12Star
| | | | | | | It was unnecessary overkill to have colorized "foo:" prefix in fdisk output. Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'fix-compile-color-cfdisk' of ↵Karel Zak2014-03-211-1/+1
|\ | | | | | | | | | | | | https://github.com/theonewolf/util-linux * 'fix-compile-color-cfdisk' of https://github.com/theonewolf/util-linux: cfdisk: fix compile-time error fixes #59
| * cfdisk: fix compile-time error fixes #59Wolfgang Richter2014-03-201-1/+1
| | | | | | | | + For compile to work also needs pull request #56 applied
* | Merge branch 'cfdisk-fix-typo' of https://github.com/rudimeier/util-linuxKarel Zak2014-03-211-2/+2
|\ \ | | | | | | | | | | | | * 'cfdisk-fix-typo' of https://github.com/rudimeier/util-linux: cfdisk: fix typo (undeclared variable since b1f58330)
| * | cfdisk: fix typo (undeclared variable since b1f58330)Ruediger Meier2014-03-141-2/+2
| |/ | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | libfdisk: properly implement read-only modeKarel Zak2014-03-213-4/+31
| | | | | | | | | | | | | | | | | | | | Don't use fallback to read-only mode in fdisk_context_assign_device(), it's application responsibility open the device in the right mode. The commands fdisk and cfdisk check (and report) read-only mode now. Reported-by: Maciej Małecki <me@mmalecki.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* | libfdisk: use new debug functionsKarel Zak2014-03-213-53/+53
|/ | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mkswap: remove unnecessary usage outputSami Kerola2014-03-121-7/+5Star
| | | | | | | | | The usage output changes too often making unnecessarily expected output in test unstable. Besides in this case the usage ouput does not even help user, because invalid swap target size error cannot be fixed by specificing an option. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* cfdisk: follow terminal-colors.dKarel Zak2014-03-111-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: fix colors initializationKarel Zak2014-03-112-1/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add note about colors to the man pageKarel Zak2014-03-111-0/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: fix slang usageKarel Zak2014-03-111-5/+17
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: ove fdisks to disk-utilsKarel Zak2014-03-119-0/+8071
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* partx: make dirent d_type usage more robustKarel Zak2014-03-041-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mkfs: mark this wrapper as DEPRECATEDKarel Zak2014-02-211-0/+2
| | | | | | | | | | | | | | | | | Theodore Ts'o: I'll add that I've never been convinced that the mkfs front end is all that useful. It's probably better for people to explicitly run /sbin/mkfs.xfs, /sbin/mkfs.ext4, etc.., so you don't have to worry about which options get passed down to the file system specific mkfs program, and which ones are interpreted by /sbin/mkfs --- and I don't believe /sbin/mkfs adds enough (err, any?) value that using "/sbin/mkfs -t xxx" vs "/sbin/mkfs.xxx" makes any sense whatsoever. ... and I absolutely agree. Reported-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Karel Zak <kzak@redhat.com>
* isosize: make --divisor to require argumentSami Kerola2014-02-171-1/+1
| | | | | | Silly bug, only the short option -d allowed divisor argument. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* isosize: move file name printing after error determinationSami Kerola2014-02-171-6/+5Star
| | | | | | | | | | | | Earlier the filename printing was buffered, and exit at error made output to appear in front of prompt. Output below demonstrates the brokenness. prompt> isosize /etc / isosize: /etc: might not be an ISO filesystem isosize: read error on /etc: Is a directory /etc: prompt> Signed-off-by: Sami Kerola <kerolasa@iki.fi>