search for: sysseek

Displaying 9 results from an estimated 9 matches for "sysseek".

2014 Jan 30
0
[PATCH 03/05] utils/mkdiskimage.in: Replaced the partly linux-specific file size determination by a sysseek() experiment
utils/mkdiskimage.in: Replaced the partly linux-specific file size determination by a sysseek() experiment. --- utils/mkdiskimage_patched_02.in 2014-01-30 20:49:46.000000000 +0100 +++ utils/mkdiskimage.in 2014-01-30 20:50:59.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() @@ -116,15 +117,8...
2014 Jul 10
2
[PATCH 00/05] Mending for mkdiskimage
On 07/10/2014 12:18 PM, Geert Stappers wrote: >> >> 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. > > Yes, they are long. > There
2014 Jan 30
1
[PATCH] Mending proposals for mkdiskimage
...remains if the device or existing file size is larger than an explicitely given number of cylinders.) ----------------------------------------------------------------- The implemented solutions are: 1. Ignoring the outcome of truncate(). 2. Correcting the argument of truncate(). 3. Using sysseek(fd, 0, SEEK_END) to determine the random-access storage capacity of any type of file. (Perl's sysseek() promises to call POSIX lseek(). More portability can hardly be imagined. In my tests any unsuitable type of Linux file yielded size 0 which is correctly considered an error...
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 Jul 11
1
[PATCH 00/05] Mending for mkdiskimage
...12:33 AM, Thomas Schmitt wrote: > Technical side note: > It turned out that the lseek(2) function of NetBSD does not work > with SEEK_END as expected from the manual. libburn had to resort > to a binary search with try-and-error to determine device sizes. > I did not check perl's sysseek() whether it suffers from the > lseek(2) shortcomming, but i would expect so. > It might be desirable to have an option for explicitely setting > a device size. Perl sysseek() is just a wrapper around lseek(2). However, there is such an option already... if you specify cylinder count or,...
2014 Jul 11
0
[PATCH 00/05] Mending for mkdiskimage
...if option -s is given. ------------------------------------------------------------------------ 3/5: The size of a non-regular file was determined only for Linux block devices. All others caused an error exit. This change replaces the partly linux-specific file size determination by a sysseek() experiment. Tested on Linux, FreeBSD, and Solaris. -------------------- Technical side note: It turned out that the lseek(2) function of NetBSD does not work with SEEK_END as expected from the manual. libburn had to resort to a binary search with try-and-error to determine device sizes. I did...
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
5
[PATCH 00/05] Mending for mkdiskimage
...and matches a cylinder end. (mkdiskimage_05.patch only zeroizes a known incomplete cylinder after the partition end.) Although mkdiskimage should be suitable now for USB sticks on unix-like systems beyond Linux, i still have no clue about USB sticks at NT/2K/XP/DOS systems. There is hope that the sysseek() method of size determination will work with a suitable file object. If only it has an address for sysopen(). Have a nice day :) Thomas
2014 Jul 10
0
[PATCH 00/05] Mending for mkdiskimage
...mkdiskimage_05.patch only zeroizes > a known incomplete cylinder after the partition end.) > > Although mkdiskimage should be suitable now for USB sticks > on unix-like systems beyond Linux, i still have no clue about > USB sticks at NT/2K/XP/DOS systems. > There is hope that the sysseek() method of size determination > will work with a suitable file object. If only it has an address > for sysopen(). > > > Have a nice day :) > > Thomas > Groeten Geert Stappers -- Leven en laten leven