Displaying 5 results from an estimated 5 matches for "mkdiskimage_orig".
2014 Jan 28
3
[PATCH] Proposal for a pacifier option with mkdiskimage
...or
> images, not for hardware devices, and it doesn't make much sense to zero
> the whole hardware device like that.
Maybe for privacy reasons ?
But indeed: -s should skip zeroizing, regardless of truncate.
Additionally the argument of truncate is currently wrong by a
factor of 512:
$ mkdiskimage_orig.in -s image.img 250 64 32
$ ls -l image.img
-rw-r--r-- 1 xyz xyz 512000 2014-01-28 08:33 image.img
How about this ?
Tested with USB stick and image file, with and without -s:
-------------------------------------------------------------------------
--- mkdiskimage_orig.in 2014-01-23 12:23...
2014 Jan 23
4
[PATCH] Proposal for a pacifier option with mkdiskimage
Hi,
i too played with mkdiskimage in order to get more Linux examples.
When i applied it to a real 2 GB stick with write speed 4 MB/s
i had enough time to add some pacifier code to the big zeroizer
loop. (-s does not prevent zeroizing on block device. Probably
because truncate() fails.)
My pacifier is combined with what Perl advised me when i tried
"fsync(OUTPUT);". Of course this
2014 Jan 30
0
[PATCH 01/05] utils/mkdiskimage.in: Option -s caused freshly created image files to be too small by a factor of 512.
utils/mkdiskimage.in: Option -s caused freshly created image files to be too small by a factor of 512.
--- utils/mkdiskimage_orig.in 2014-01-23 12:23:34.000000000 +0100
+++ utils/mkdiskimage.in 2014-01-30 20:35:13.000000000 +0100
@@ -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, $totalsize)) {
+unless ($opt{...
2014 Jan 30
5
[PATCH 00/05] Mending for mkdiskimage
Hi,
following is a series of patches derived from my proposed diff.
Based on syslinux-6.03-pre1, but should also apply down to 4.xx.
I hope to have imitated the changelog style sufficiently.
Mine are a bit longer than usual with patches in the archive, i fear.
Instructions for the future are welcome.
Each intermediate state is tested for its designated purpose only.
The final state after
2014 Jan 30
1
[PATCH] Mending proposals for mkdiskimage
...as 0.
(In the other cases, the unclaimed space might be much larger
than a cylinder. For those i would propose a new option -A,
if ever.)
I can make single-issue diffs, if desired.
But first i ask for comments:
=================================================================
--- test/mkdiskimage_orig.in 2014-01-23 12:23:34.000000000 +0100
+++ test/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...