search for: show_pacifi

Displaying 5 results from an estimated 5 matches for "show_pacifi".

Did you mean: show_pacifier
2014 Jan 30
2
[PATCH 04/05] utils/mkdiskimage.in: New option -S to sync zeroizing after each cylinder and to issue pacifier messages
...TDERR " -s output a sparse file (don't allocate all blocks)\n"; + print STDERR " -S sync after each zeroized cylinder and show count\n"; exit 1; } @@ -218,12 +219,24 @@ if ($opt{'s'}) { } else { $track = "\0" x (512*$s); + $show_pacifier = $opt{'S'}; + # Print fractional track print OUTPUT "\0" x (512 * ($s-1)); for ( $i = 1 ; $i < $tracks ; $i++ ) { + if ( $show_pacifier && ( $i - 1 ) % $h == 0 ) { + $cyl_to_write = ( $i - 1 ) / $h + 1; + IO::Handle::sync(OUTPUT); + print...
2014 Jul 10
4
[PATCH 1/5] utils/mkdiskimage.in: Option -s caused freshly created image files to be too small by a factor of 512.
--- utils/mkdiskimage.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/mkdiskimage.in b/utils/mkdiskimage.in index 533193a..a95a077 100644 --- a/utils/mkdiskimage.in +++ b/utils/mkdiskimage.in @@ -218,7 +218,7 @@ $totalsize = $c*$h*$s; $tracks = $c*$h; # If -s is given, try to simply use truncate... -unless ($opt{'s'} && truncate(OUTPUT,
2014 Jan 30
1
[PATCH] Mending proposals for mkdiskimage
...9;} && truncate(OUTPUT, $totalsize)) { +# If -s is given, simply use truncate. Do not care for success. Failure is +# normal with Linux block devices. +if ($opt{'s'}) { + truncate(OUTPUT, ($totalsize + $zero_tail) * 512); +} else { $track = "\0" x (512*$s); + $show_pacifier = $opt{'S'}; + # Print fractional track print OUTPUT "\0" x (512 * ($s-1)); for ( $i = 1 ; $i < $tracks ; $i++ ) { + if ( $show_pacifier && ( $i - 1 ) % $h == 0 ) { + $cyl_to_write = ( $i - 1 ) / $h + 1; + IO::Handle::sync(OUTPUT); + print...
2014 Jan 30
2
[PATCH 02/05] utils/mkdiskimage.in: With option -s: Avoid zeroizing the partition even if truncate() failed
utils/mkdiskimage.in: With option -s: Avoid zeroizing the partition even if truncate() failed. --- utils/mkdiskimage_patched_01.in 2014-01-30 20:43:02.000000000 +0100 +++ utils/mkdiskimage.in 2014-01-30 20:45:09.000000000 +0100 @@ -217,8 +217,11 @@ print OUTPUT "\x55\xaa"; $totalsize = $c*$h*$s; $tracks = $c*$h; -# If -s is given, try to simply use truncate... -unless
2014 Jan 23
4
[PATCH] Proposal for a pacifier option with mkdiskimage
...llocate all blocks)\n"; + print STDERR " -S sync after each zeroized cylinder and show count\n"; exit 1; } @@ -221,12 +222,23 @@ $tracks = $c*$h; unless ($opt{'s'} && truncate(OUTPUT, $totalsize)) { $track = "\0" x (512*$s); + $show_pacifier = $opt{'S'}; + # Print fractional track print OUTPUT "\0" x (512 * ($s-1)); for ( $i = 1 ; $i < $tracks ; $i++ ) { + if ( $show_pacifier && ( $i - 1 ) % $h == 0) { + $cyl_to_write = ( $i - 1 ) / $h + 1; + IO::Handle::sync(OUTPUT); + print...