BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001265 [BusyBox] Other major always 03-07-07 15:54 03-08-07 09:16
Reporter neworld View Status public  
Assigned To BusyBox
Priority normal Resolution no change required  
Status closed   Product Version 1.4.x
Summary 0001265: 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.
Additional Information
Attached Files

- Relationships

- Notes
(0002222)
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
03-08-07 09:16 vda Resolution open => no change required


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker