-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seek after write on block device fails #13977
Comments
From afresh1@openbsd.orgCreated by afresh1@openbsd.orgTrying to seek and write to a block device (directly to the raw USB disk) Here is a short test program to reproduce it in both perl 5.18.2 and blead. If you uncomment the first seek, that one succeeds. #!/usr/bin/perl use Fcntl qw/SEEK_SET/; $| = 1; #seek( Results in 17275 perl CALL read(0x3,0x55c7a558000,0x2000) Perl Info
|
From 2bfjdsla52kztwejndzdstsxl9athp@gmail.comThis has nothing to do with perl.
Raw disk device I/O must be block aligned. Writing a single byte /Bo Lindbergh |
The RT System itself - Status changed from 'new' to 'open' |
From andrew@afresh1.comOn Fri, Jul 11, 2014 at 02:00:40AM +0200, Bo Lindbergh wrote:
Sounds reasonable and this does succeed: print Perhaps a case of a misleading error message, as it seems the print should not On Thu, Jul 10, 2014 at 07:35:10AM -0700, via RT wrote:
I will instead complain that the error is "seek2:..." not "print:..." Not sure I can update the ticket though. l8rZ, Adding manpower to a late software project makes it later. |
From @iabynOn Fri, Jul 11, 2014 at 12:07:37AM -0700, Andrew Fresh wrote:
print() does buffered output. The underlying write() system call will not -- |
From andrew@afresh1.comOn Fri, Jul 11, 2014 at 11:47:10AM +0100, Dave Mitchell wrote:
I see. I would have expected that On Thu, Jul 10, 2014 at 07:35:10AM -0700, via RT wrote:
would have reduced that buffering, at least to be line buffered. So I guess there is no good fix in this case. l8rZ, At the source of every error which is blamed on the computer, you |
From @LeontOn Fri, Jul 11, 2014 at 1:29 PM, Andrew Fresh <andrew@afresh1.com> wrote:
$| affects the current default filehandle (which defaults to STDOUT). Leon |
From @tonycozOn Thu Jul 10 17:01:20 2014, 2bfjdsla52kztwejndzdstsxl9athp@gmail.com wrote:
And so, rejecting this ticket. Tony |
@tonycoz - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#122263 (status was 'rejected')
Searchable as RT122263$
The text was updated successfully, but these errors were encountered: