search for: mkdiskimage_with_lower_

Displaying 2 results from an estimated 2 matches for "mkdiskimage_with_lower_".

2014 Jan 28
3
[PATCH] Proposal for a pacifier option with mkdiskimage
...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:34.000000000 +0100 +++ mkdiskimage_with_lower_s.in 2014-01-28 08:25:02.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 ($opt{'s'} && truncate(OUTPUT, $totalsize)) { +# If -s is given, simply use trun...
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