summaryrefslogtreecommitdiffstats
path: root/lib/wholedisk.c
Commit message (Collapse)AuthorAgeFilesLines
* fdisk: more robust whole-disk detectionKarel Zak2011-02-171-7/+6Star
| | | | | | | | In lib/wholedisk.c, i is set to 0. If fd was a -1, then at line 18 geometry.start is used without it being initialized. Reported-by: Steve Grubb <sgrubb@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: wholedisk - extend API, add test programKarel Zak2009-03-121-8/+35
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: add is_whole_disk() from fdisk codeKarel Zak2009-03-111-0/+31
Signed-off-by: Karel Zak <kzak@redhat.com>