[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] make parted work with geometries specified in sectors
From: |
Balazs Scheidler |
Subject: |
[PATCH] make parted work with geometries specified in sectors |
Date: |
Mon, 19 May 2003 11:20:51 +0200 |
User-agent: |
Mutt/1.3.28i |
Hi,
While trying to use parted noninteractively we stumbled on the problem that
parted only accepts geometries specified in megabytes. This is a problem as
the conversion from sectors to MB may lose sectors. (parted writes
geometries with 3 number precision)
The attached patch adds a new command named 'unit' which allows the user to
specify what kind of unit he wants to use.
This unit is then used when 'print'-ing a partition table and also when
creating a new one. It is also possible to override this default setting by
using the postfix operators (M, K and S) for geometry specifications.
e.g. mkpart 0x82 ext2 0S 10000S
which allocates 10000 sectors even if the default unit currently set is M.
--
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
qqq
Description: Text document
- [PATCH] make parted work with geometries specified in sectors,
Balazs Scheidler <=