summaryrefslogtreecommitdiffstats
path: root/fdisks
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '2012wk28'Karel Zak2012-07-162-24/+23Star
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 2012wk28: translation: unify file open error messages translation: unify stat error messages utmpdump: use help and version output macros su: align with howto-usage-function fdisk: make if clause easier to read look: remove extra semicolon utmpdump: remove unused variable swapon: remove unused variables lib/loopdev: minor bug fix: add missing semicolon lib/pager: minor compiler warning fixes libblkid: remove duplicate entries in symbols
| * translation: unify file open error messagesSami Kerola2012-07-162-6/+6
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * fdisk: make if clause easier to readSami Kerola2012-07-161-19/+18Star
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | fdisk: rename label probing functionsPetr Uzel2012-07-166-12/+12
| | | | | | | | | | | | | | | | | | | | Rename check_$foo_label() to $foo_probe_label(): 1/ 'probe' is more appropriate verb than 'check' for these functions 2/ making label name first part of the funciton name is IMO more friendly for tags completion (e.g. vim + cscope/ctags). Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* | fdisk: don't call update_units() in label probes if not necessaryPetr Uzel2012-07-163-3/+0Star
| | | | | | | | | | | | | | | | | | update_units() is called in _probe_labels before the label probes are started, so we don't need to call it again in probers, unless it messes around with geometry, which currently only check_sun_label() does (so keep the call to update_units() in this one). Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* | fdisk: API: add label probing functionalityDavidlohr Bueso2012-07-1615-34/+96
|/ | | | | | | | | | | | | | | | This patch sets the initial layout for label specific operations. A new fdisk_label structure is created that will hold all these ops, like new, delete, write and probe, among others. For now only probing is implemented. Once this design is established, a copy of the probed label will be copied to the main context structure, where calling the specific functions will save 'disklabel' checks. Debugging support is added as well. This patch passes regression tests and manually passes bsd, sun, dos and sgi labels probes. Reviewed-by: Petr Uzel <petr.uzel@suse.cz> Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* fix buffer overrun in some calls to sscanfKarel Zak2012-07-092-2/+2
| | | | | Reported-by: Sergei Antonov <saproj@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: always use default $(LDADD)Karel Zak2012-07-091-3/+3
| | | | | | | | The global variable $(LDADD) is always used if program_LDADD is not specified. Let's use $LDADD everywhere to avoid exceptions for people who need to specify global $LDADD. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: cleanup .gitignore filesKarel Zak2012-06-261-3/+0Star
| | | | | | | - move all binaries to top-level .gitignore - remove unnecessary */.gitignore files Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert lib/ to libcommon.laKarel Zak2012-06-261-16/+9Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: rename fdisk -> fdisks/, convert to moduleKarel Zak2012-06-2627-0/+14389
Signed-off-by: Karel Zak <kzak@redhat.com>