develooper Front page | perl.perl5.porters | Postings from October 2014

[perl #122263] Seek after write on block device fails

From:
Tony Cook via RT
Date:
October 21, 2014 04:53
Subject:
[perl #122263] Seek after write on block device fails
Message ID:
rt-4.0.18-6936-1413867207-1948.122263-15-0@perl.org
On Thu Jul 10 17:01:20 2014, 2bfjdsla52kztwejndzdstsxl9athp@gmail.com wrote:
> This has nothing to do with perl.
> 
> > Trying to seek and write to a block device (directly to the raw USB disk)
> > fails with "Invalid Argument".
> 
> 
> > 17275 perl     CALL  write(0x3,0x55c7a558000,0x1)
> > 17275 perl     RET   write -1 errno 22 Invalid argument
> 
> Raw disk device I/O must be block aligned.  Writing a single byte
> will always fail (except in the unlikely case that the disk has
> a block size of 1).

And so, rejecting this ticket.

Tony

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=122263



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About