diff options
author | Karel Zak | 2014-02-03 14:40:27 +0100 |
---|---|---|
committer | Karel Zak | 2014-03-11 11:35:14 +0100 |
commit | 036439315f4c29748fddd10c33d6cc4868dd9352 (patch) | |
tree | b835ad35c81cab7e2434f04edbecdaa48a007703 /libfdisk/src/dos.c | |
parent | libfdisk: don't ask for pri/log if wanted start within extended partition (diff) | |
download | kernel-qcow2-util-linux-036439315f4c29748fddd10c33d6cc4868dd9352.tar.gz kernel-qcow2-util-linux-036439315f4c29748fddd10c33d6cc4868dd9352.tar.xz kernel-qcow2-util-linux-036439315f4c29748fddd10c33d6cc4868dd9352.zip |
libfdisk: improve freesapce detection
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/dos.c')
-rw-r--r-- | libfdisk/src/dos.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c index cb34be8ab..327a747cf 100644 --- a/libfdisk/src/dos.c +++ b/libfdisk/src/dos.c @@ -1612,6 +1612,11 @@ static int dos_get_partition(struct fdisk_context *cxt, size_t n, pa->end = get_abs_partition_start(pe) + psects - (psects ? 1 : 0); pa->size = psects; + if (n >= 4) { + pa->parent_partno = self_label(cxt)->ext_index; + pa->nested = 1; + } + if (asprintf(&pa->attrs, "%02x", p->boot_ind) < 0) return -ENOMEM; |