search for: end_sectors

Displaying 7 results from an estimated 7 matches for "end_sectors".

2019 Apr 15
1
[PATCH] daemon: drop error message check in do_part_expand_gpt
...eply_with_error ("%s -e %s: %s", "sgdisk", device, err); diff --git a/tests/gdisk/test-expand-gpt.pl b/tests/gdisk/test-expand-gpt.pl index 4d647f1af..f17d034ee 100755 --- a/tests/gdisk/test-expand-gpt.pl +++ b/tests/gdisk/test-expand-gpt.pl @@ -54,11 +54,29 @@ sub tests { my $end_sectors = 100 * 1024 * 2 - $output; die unless $end_sectors <= 34; - # Negative tests. + # Negative test. eval { $g->part_expand_gpt ("/dev/sdb") }; die unless $@; - eval { $g->part_expand_gpt ("/dev/sda1") }; - die unless $@; + + $g->close (); + + # Disk shrink test...
2015 Dec 01
3
[PATCHv2] New API: part_expand_gpt.
...$g->launch (); + die if $g->part_expand_gpt ("/dev/sda"); + + my $output = $g->debug ("sh", ["sgdisk", "-p", "/dev/sda"]); + die if $output eq ""; + $output =~ s/\n/ /g; + $output =~ s/.*last usable sector is (\d+).*/$1/g; + + my $end_sectors = 100 * 1024 * 2 - $output; + die unless $end_sectors <= 34; + + # Negative tests. + eval { $g->part_expand_gpt ("/dev/sdb") }; + die unless $@; + eval { $g->part_expand_gpt ("/dev/sda1") }; + die unless $@; +} + +eval { tests() }; +system ("rm -f disk_*.img")...
2015 Dec 22
0
Re: [PATCHv2] New API: part_expand_gpt.
...art_expand_gpt ("/dev/sda"); > + > + my $output = $g->debug ("sh", ["sgdisk", "-p", "/dev/sda"]); > + die if $output eq ""; > + $output =~ s/\n/ /g; > + $output =~ s/.*last usable sector is (\d+).*/$1/g; > + > + my $end_sectors = 100 * 1024 * 2 - $output; > + die unless $end_sectors <= 34; > + > + # Negative tests. > + eval { $g->part_expand_gpt ("/dev/sdb") }; > + die unless $@; > + eval { $g->part_expand_gpt ("/dev/sda1") }; > + die unless $@; > +} > + > +eval {...
2016 Jan 20
1
[PATCHv2] New API: part_expand_gpt.
...$g->launch (); + die if $g->part_expand_gpt ("/dev/sda"); + + my $output = $g->debug ("sh", ["sgdisk", "-p", "/dev/sda"]); + die if $output eq ""; + $output =~ s/\n/ /g; + $output =~ s/.*last usable sector is (\d+).*/$1/g; + + my $end_sectors = 100 * 1024 * 2 - $output; + die unless $end_sectors <= 34; + + # Negative tests. + eval { $g->part_expand_gpt ("/dev/sdb") }; + die unless $@; + eval { $g->part_expand_gpt ("/dev/sda1") }; + die unless $@; +} + +eval { tests() }; +system ("rm -f disk_*.img")...
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
Not really interesting yet, this just gets us to the state where single queue boots on a current kernel. Signed-off-by: Jens Axboe <axboe at kernel.dk> --- block/Kconfig | 5 + block/Kconfig.iosched | 2 + block/blk-core.c | 427 ++++++++++++++++++-------------------- block/blk-exec.c | 14 +- block/blk-flush.c
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
Not really interesting yet, this just gets us to the state where single queue boots on a current kernel. Signed-off-by: Jens Axboe <axboe at kernel.dk> --- block/Kconfig | 5 + block/Kconfig.iosched | 2 + block/blk-core.c | 427 ++++++++++++++++++-------------------- block/blk-exec.c | 14 +- block/blk-flush.c
2013 Jul 31
29
[PATCH 0/9] tools: remove or disable old/useless/unused/unmainted stuff
depends on "autoconf: regenerate configure scripts with 4.4 version" This series removes some of the really old deadwood from the tools build and makes some other things which are on their way out configurable at build time with a default depending on how far down the slope I judge them to be. * nuke in tree copy of libaio * nuke obsolete tools: xsview, miniterm, lomount & sv *