Subject: mbr: MBR fails when opening large files Package: mbr Version: 1.1.9-2 Severity: important
*** Please type your report below this line *** When attempting to use install-mbr to install mbr into a large file, it fails. As it only needs to write the first 512 bytes, this seems rather unneccesary. Should it be compiled with -D_LARGE_FILES? zsh > ls -lh test.hd -rw-r--r-- 1 mariw mariw 4.0G 2007-04-08 23:41 test.hd zsh > /sbin/install-mbr test.hd install-mbr: Failed to open test.hd: File too large zsh > strace /sbin/install-mbr test.hd execve("/sbin/install-mbr", ["/sbin/install-mbr", "test.hd"], [/* 31 vars */]) = 0 uname({sys="Linux", node="frost", ...}) = 0 brk(0) = 0x804d000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f0e000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=73762, ...}) = 0 mmap2(NULL, 73762, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7efb000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240O\1"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=1241392, ...}) = 0 mmap2(NULL, 1247388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dca000 mmap2(0xb7ef1000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x127) = 0xb7ef1000 mmap2(0xb7ef8000, 10396, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ef8000 close(3) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7dc9000 mprotect(0xb7ef1000, 20480, PROT_READ) = 0 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7dc98e0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 munmap(0xb7efb000, 73762) = 0 open("test.hd", O_RDWR|O_NOCTTY) = -1 EFBIG (File too large) write(2, "install-mbr: Failed to open test"..., 52install-mbr: Failed to open test.hd: File too large ) = 52 exit_group(1) = ? Process 15834 detached -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-686 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages mbr depends on: ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries mbr recommends no packages. -- no debconf information -- Mari Wang -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]