summaryrefslogtreecommitdiff
path: root/partx
AgeCommit message (Collapse)AuthorFilesLines
2011-01-23remaining util-linux-ng to util-linuxSami Kerola1-1/+1
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-01-17partx: fix typo in partx.8Davidlohr Bueso1-1/+1
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-01-04docs: fix typos in man pagesKarel Zak2-2/+2
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=664458 Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=664294 Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=664182 Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-31partx: fix authors section in man pageDavidlohr Bueso1-1/+1
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2010-12-10fix __noreturn__ usageKarel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-09partx: tiny change in usage()Karel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-09partx: cleanup and add columnsKarel Zak1-13/+31
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-09delpart: code consolidationKarel Zak1-20/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-09addpart: code consolidationKarel Zak1-21/+9
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-09partx: complete rewriteDavidlohr Bueso16-2084/+905
Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-01remove -ng from some filesKarel Zak2-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-30rename util-linux-ng back to util-linuxKarel Zak3-6/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-10-08partx: integrate support for mac and sun partitions, based on kpartx.Davidlohr Bueso5-7/+6
[kzak@redhat.com: - remove unnecessary members from struct slice, - fix gcc warnings] Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-10-08partx: add sun partition table supportDavidlohr Bueso1-0/+134
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2010-10-08partx: add mac partition table supportDavidlohr Bueso1-0/+74
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2010-05-24build-sys: replace ../ with $top_srcdirKarel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-05-13addpart: use atoll() for parsing command line argumentsThomas Fehr1-2/+2
Addresses: http://bugzilla.novell.com/show_bug.cgi?id=603328 Signed-off-by: Petr Uzel <petr.uzel@suse.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-03-31partx: fix infinite loopKarel Zak1-0/+2
On Wed, Mar 24, 2010 at 04:39:35PM -0400, Phillip Susi wrote: > I noticed that running partx -d /dev/sda hangs so I looked into it > and it seems that it keeps trying to delete partitions forever. Reported-By: Phillip Susi <psusi@cfl.rr.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-03-31partx: do not add nonexistent partitionsPhillip Susi1-0/+3
This simple patch fixes partx -a to not add nonexistent zero length partitions for unused primary partition slots to to the kernel. This makes partx conform to the usual kernel behavior. Signed-off-by: Phillip Susi <psusi@cfl.rr.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-16partx: use c.hKarel Zak1-3/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-07partx: work properly with 512 sectors (dos PT)Karel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-08-17partx.8: formattingPeter Breitenlohner1-1/+8
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2009-08-17delpart.8: formattingPeter Breitenlohner1-3/+4
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2009-08-17addpart.8: formattingPeter Breitenlohner1-5/+6
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2009-08-17replace bcopy,bzero,index and rindexDaniel Mierswa1-1/+1
Those 4 functions are marked as LEGACY in POSIX.1-2001 and removed in POSIX.1-2008. Replaced with memmove,memset,strchr and strrchr. Signed-off-by: Daniel Mierswa <impulze@impulze.org>
2009-07-04build-sys: rename to _execdirKarel Zak1-1/+1
The variable name "usrlibexecdir" is very confusing (because we have /usr/libexec). The "exec" prefix is required for user-defined directories, see http://www.gnu.org/software/hello/manual/automake/The-Two-Parts-of-Install.html#The-Two-Parts-of-Install This patch renames all usr*execdir variables to usr*_execdir. Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-26partx: use ioctls from lib/blkdev.cKarel Zak1-75/+13
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-26fdisk: (and partx) remove BLKGETLASTSECTKarel Zak1-38/+1
This odd ioctl is unsupported in the current 2.4 and 2.6 mainline. Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-26partx: don't duplicate lib/blkdev.c codeKarel Zak1-5/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-26partx: convert hard sector size to 512-byte sectorsKarel Zak3-8/+23
The msdos PT depends on a sector size (BLKSSZGET), but partx(8) counts internally with 512-byte sectors only. The dos.c has to convert start and size to 512-byte sectors. sysfs (kernel uses 512-byte sectors only): # cat /sys/block/sdb/sdb1/{start,size} 256 16128 (note that 16128 * 512 = 8257536; 8Mb) old version: # partx /dev/sdb 1: 32- 2047 ( 2016 sectors, 1 MB) ^^^^ start, end and sectors are correct, but in 4KiB sectors The size in MB is completely wrong. new version: # partx -l /dev/sdb 1: 256- 16383 ( 16128 sectors, 8 MB) start, end and sectors are converted to 512-byte sectors. The size in MB is correct now. Note that this change is important, because "partx -a" counts the size of a new partition in 512-byte sectors for all PT formats (sun, gpt, ...). Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-26addpart: 512-byte sectors in code, bytes in man-pageKarel Zak1-2/+2
The addpart.c code uses 512-byte sectors for partition start and length, but in the addpart.8 man page is "in bytes". The code (and this code is pretty old) is always right... the man page has to be fixed. Signed-off-by: Karel Zak <kzak@redhat.com>
2008-09-16partx: don't redeclare daddr_tmaximilian attems1-2/+1
klibc porting fix, use proper include, nuke redefinition. solaris.c:8: error: redefinition of typedef ‘daddr_t’ /usr/lib/klibc/include/sys/types.h:29: error: previous declaration of ‘daddr_t’ was here Signed-off-by: maximilian attems <max@stro.at>
2008-04-14build-sys: update .gitignore filesKarel Zak1-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-03-20partx: fix compiler warningsKarel Zak5-7/+7
dos.c:44: warning: pointer targets in assignment differ in signedness dos.c:93: warning: pointer targets in assignment differ in signedness Signed-off-by: Karel Zak <kzak@redhat.com>
2008-03-12remove useless if-before-free tests.Jim Meyering2-6/+4
E.g., in this example, the "if (p)" test is useless. if (p) free (p); I've been removing such tests systematically. Here's where I proposed it to the git folks, along with justification for why it's ok to perform this transformation, these days (no one uses SunOS4 anymore): http://thread.gmane.org/gmane.comp.version-control.git/74187 Signed-off-by: Jim Meyering <meyering@redhat.com>
2007-12-17partx: use swab macros from bitops.hKarel Zak1-62/+62
Clean up GPT code: - remove C++ comments - tailing white-spaces - use cpu_to_ swab macros from bitops.h Signed-off-by: Karel Zak <kzak@redhat.com>
2007-12-17build-sys: use dist_man_MANS instead of man_MANSStepan Kasal1-1/+1
Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-07-03man pages: add "AVAILABILITY" sectionKarel Zak3-0/+10
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-02-09partx: add man pages for addpart, delpart and partxKarel Zak4-0/+113
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-04build-sys: add missing filesKarel Zak1-1/+2
This patch add all missing headers, man pages and README files to automake stuff and "make dist-gzip" produces useful tarball now. Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-03build-sys: remove generated autotools stuff from gitKarel Zak1-512/+0
The generated autotools stuff shouldn't be maintained by SCM. After check out from git use ./autogen.sh. For more details see README.devel. Signed-off-by: Karel Zak <kzak@redhat.com>
2006-12-07Imported from util-linux-2.13-pre6 tarball.Karel Zak2-21/+2
2006-12-07Imported from util-linux-2.13-pre4 tarball.Karel Zak1-0/+2
2006-12-07Imported from util-linux-2.13-pre3 tarball.Karel Zak1-2/+2
2006-12-07Imported from util-linux-2.13-pre2 tarball.Karel Zak2-99/+40
2006-12-07Imported from util-linux-2.13-pre1 tarball.Karel Zak7-17/+588
2006-12-07Imported from util-linux-2.12b tarball.Karel Zak1-1/+1
2006-12-07Imported from util-linux-2.12a tarball.Karel Zak2-12/+28
2006-12-07Imported from util-linux-2.11x tarball.Karel Zak1-2/+6
2006-12-07Imported from util-linux-2.11u tarball.Karel Zak1-21/+2