summaryrefslogtreecommitdiffstats
path: root/COPYING
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2022-12-14 16:36:38 +0100
committerJose M. Guisado <jguisado@soleta.eu>2022-12-15 17:36:57 +0100
commit7271bc99db8dcb349464eabd50da3f41942f6822 (patch)
tree299999725b660262fc0958fa1801053130b1a9e2 /COPYING
parent8707d4311112f589ff7dcaf7ed634dbcc3bd9fdb (diff)
partition: add *_follow_default optional params
Add optional parameters inside init function of partition. Optional parameters refer to: - partno_follow_default - start_follow_default - end_follow_default These options can be used in order to enable or disable default partno, start and end value when adding partitions. With those optional parameters enabled by default a user is able to add a partition into the context label without specifying any attribute. >>> import fdisk >>> cxt = fdisk.Context('./disk.bin', readonly=False) >>> cxt.create_disklabel('gpt') >>> pa = fdisk.Partition() >>> cxt.add_partition(pa) This enables: - "Filling" the rest of the disk with last partition - No need to track start/end sector for any following partition - No need to track next partno number for any following partition See: https://cdn.kernel.org/pub/linux/utils/util-linux/v2.34/libfdisk-docs/libfdisk-Partition.html#fdisk-partition-partno-follow-default https://cdn.kernel.org/pub/linux/utils/util-linux/v2.34/libfdisk-docs/libfdisk-Partition.html#fdisk-partition-start-follow-default https://cdn.kernel.org/pub/linux/utils/util-linux/v2.34/libfdisk-docs/libfdisk-Partition.html#fdisk-partition-end-follow-default
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions