search for: zero_tail

Displaying 4 results from an estimated 4 matches for "zero_tail".

2014 Jan 30
2
[PATCH 04/05] utils/mkdiskimage.in: New option -S to sync zeroizing after each cylinder and to issue pacifier messages
...;& ( $i - 1 ) % $h == 0 ) { + $cyl_to_write = ( $i - 1 ) / $h + 1; + IO::Handle::sync(OUTPUT); + print STDERR " zeroizing cylinder $cyl_to_write of $c\r"; + } print OUTPUT $track; } + if ( $show_pacifier ) { + IO::Handle::sync(OUTPUT); + $zeroized = $totalsize + $zero_tail - 1; + print STDERR " $zeroized blocks zeroized. \n"; + } } # Print mtools temp file
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
...mkdiskimage.in 2014-01-30 17:57:30.000000000 +0100 @@ -19,6 +19,7 @@ use bytes; use integer; use Fcntl; +use Fcntl qw(:seek); use Errno; use Cwd; use IO::Handle; # For flush() @@ -94,6 +95,7 @@ while (defined($a = shift(@ARGV))) { ($file,$c,$h,$s) = @args; $c += 0; $h += 0; $s += 0; +$zero_tail = 0; $pentry = 1; $pentry = 2 if ( $opt{'2'} ); @@ -107,7 +109,9 @@ if ( $opt{'z'} ) { if ( $opt{'M'} && $h && $s ) { # Specify size in megabytes, not in cylinders + $mb = $c; $c = ($c*1024*2)/($h*$s); + $zero_tail = ($mb * 1024 * 2 - $...
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