search for: resizepart

Displaying 3 results from an estimated 3 matches for "resizepart".

2017 Jul 29
5
[PATCH 1/1] New partition API: part_resize
...eof partnum_str, "%d", partnum); + snprintf (endstr, sizeof endstr, "%" PRIi64 "s", endsect); + + udev_settle (); + + r = commandf (NULL, &err, COMMAND_FLAG_FOLD_STDOUT_ON_STDERR, + "parted", "-s", "--", device, "resizepart", partnum_str, + endstr, NULL); + if (r == -1) { + reply_with_error ("parted: %s: %s:", device, err); + return -1; + } + + udev_settle(); + + return 0; +} + +int do_part_disk (const char *device, const char *parttype) { int r; diff --git a/generator/acti...
2017 Jul 29
0
[PATCH 0/1] New partition API: part_resize
Hello, I've added a new API method to expose parted's resizepart command. It's been there for some years now and can be used to change the ending boundaries of a partition. This command does always retain the partition number and flags. There are cases where simulating this behavior by removing and re-creating the partition is not easy. One such case is when...
2017 Jul 30
0
Re: [PATCH 1/1] New partition API: part_resize
...;, partnum); > + snprintf (endstr, sizeof endstr, "%" PRIi64 "s", endsect); > + > + udev_settle (); > + > + r = commandf (NULL, &err, COMMAND_FLAG_FOLD_STDOUT_ON_STDERR, > + "parted", "-s", "--", device, "resizepart", partnum_str, > + endstr, NULL); > + if (r == -1) { > + reply_with_error ("parted: %s: %s:", device, err); > + return -1; > + } > + > + udev_settle(); > + > + return 0; > +} > + > +int > do_part_disk (const char *devic...