[BusyBox 0001265]: dd can't seek beyond 32bit offset

bugs at busybox.net bugs at busybox.net
Thu Mar 8 17:16:38 UTC 2007


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=1265 
====================================================================== 
Reported By:                neworld
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1265
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             03-07-2007 15:54 PST
Last Modified:              03-08-2007 09:16 PST
====================================================================== 
Summary:                    dd can't seek beyond 32bit offset
Description: 
dd when seeking truncates the seek to 32 bits so you can not seek beyond
byte 0xffffff.  It should probably use _llseek instead of lseek to be able
to seek beyond that point.
====================================================================== 

---------------------------------------------------------------------- 
 vda - 03-08-07 09:14  
---------------------------------------------------------------------- 
Not true. With CONFIG_LFS=y:

# strace ./busybox dd seek=1000000000 bs=1k count=1 if=/dev/sda
of=/dev/null

open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 4
open("/dev/null", O_WRONLY|O_CREAT|O_LARGEFILE, 0666) = 5
ftruncate64(5, 1024000000000)           = -1 EINVAL (Invalid argument)
fstat64(5, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
_llseek(5, 1024000000000, [0], SEEK_CUR) = 0
read(4, "\372\353%MultiBoot 0.4\r\n\0x1x\0\0Z\0p\7|\7\205\7"..., 1024) =
1024
write(5, "\372\353%MultiBoot 0.4\r\n\0x1x\0\0Z\0p\7|\7\205\7"..., 1024) =
1024
close(4)                                = 0
close(5)                                = 0
write(2, "1+0 records in\n1+0 records out\n", 311+0 records in
1+0 records out
) = 31
exit_group(0)                           = ? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-07-07 15:54  neworld        New Issue                                    
03-07-07 15:54  neworld        Status                   new => assigned     
03-07-07 15:54  neworld        Assigned To               => BusyBox         
03-08-07 09:14  vda            Note Added: 0002222                          
03-08-07 09:16  vda            Status                   assigned => closed  
======================================================================




More information about the busybox-cvs mailing list