search for: end_sector

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

Did you mean: 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 tes...
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
...e); - kfree(e->hash); kfree(e); } int elevator_init(struct request_queue *q, char *name) { struct elevator_type *e = NULL; struct elevator_queue *eq; int err; if (unlikely(q->elevator)) return 0; INIT_LIST_HEAD(&q->queue_head); - q->last_merge = NULL; q->end_sector = 0; q->boundary_rq = NULL; if (name) { e = elevator_get(name); if (!e) return -EINVAL; } @@ -220,72 +231,81 @@ int elevator_init(struct request_queue *q, char *name) "Using noop.\n"); e = elevator_get("noop"); } } eq = elevator_alloc(q,...
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
...e); - kfree(e->hash); kfree(e); } int elevator_init(struct request_queue *q, char *name) { struct elevator_type *e = NULL; struct elevator_queue *eq; int err; if (unlikely(q->elevator)) return 0; INIT_LIST_HEAD(&q->queue_head); - q->last_merge = NULL; q->end_sector = 0; q->boundary_rq = NULL; if (name) { e = elevator_get(name); if (!e) return -EINVAL; } @@ -220,72 +231,81 @@ int elevator_init(struct request_queue *q, char *name) "Using noop.\n"); e = elevator_get("noop"); } } eq = elevator_alloc(q,...
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 *