Toshiyuki Okajima
d889dc8382
ext4: fix EFBIG edge case when writing to large non-extent file
...
By running the following reproducer, we can confirm that the write
system call returns with 0 when it should return the error EFBIG.
#!/bin/sh
/bin/dd if=/dev/zero of=./img bs=1k count=1 seek=1024k > /dev/null 2>&1
/sbin/mkfs.ext3 -Fq ./img
/bin/mount -o loop -t ext4 ./img /mnt
/bin/touch /mnt/file
strace /bin/dd if=/dev/zero of=/mnt/file conv=notrunc bs=1k count=1 seek=$((2194719883264/1024)) 2>&1 | /bin/egrep "write.* 1024\) = "
/bin/umount /mnt
exit
Signed-off-by: Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Eric Sandeen <sandeen@redhat.com>
2010-07-27 11:56:07 -04:00
..
2010-05-27 22:05:02 -04:00
2010-05-27 22:15:42 -04:00
2010-05-27 22:05:02 -04:00
2010-06-01 09:26:36 -07:00
2010-05-27 09:12:56 -07:00
2010-05-27 09:12:41 -07:00
2010-03-30 22:02:32 +09:00
2010-05-27 22:06:06 -04:00
2010-06-11 14:18:47 -07:00
2010-05-12 18:23:58 -07:00
2010-06-10 13:30:25 -07:00
2010-06-01 17:15:52 +00:00
2010-05-27 22:05:02 -04:00
2010-06-04 17:16:29 -04:00
2010-05-19 22:41:57 -04:00
2010-05-21 18:31:12 -04:00
2010-04-30 14:52:51 -05:00
2010-05-27 22:15:42 -04:00
2010-05-27 22:05:02 -04:00
2010-06-04 17:16:30 -04:00
2010-05-30 09:11:11 -07:00
2010-07-27 11:56:07 -04:00
2010-05-27 22:16:02 -04:00
2010-05-27 09:12:56 -07:00
2010-06-01 13:32:11 -07:00
2010-05-30 09:16:14 -07:00
2010-05-27 22:15:42 -04:00
2010-03-30 22:02:32 +09:00
2010-05-17 05:27:03 +02:00
2010-05-27 22:05:02 -04:00
2010-05-27 22:05:02 -04:00
2010-05-27 22:05:02 -04:00
2010-05-27 22:06:06 -04:00
2010-05-27 09:12:56 -07:00
2010-05-21 19:30:41 +02:00
2010-07-27 11:56:05 -04:00
2010-06-07 17:10:06 -07:00
2010-05-30 09:11:11 -07:00
2010-03-30 22:02:32 +09:00
2010-05-27 22:05:02 -04:00
2010-06-04 17:16:30 -04:00
2010-05-27 22:05:02 -04:00
2010-05-27 22:05:02 -04:00
2010-03-30 22:02:32 +09:00
2010-06-09 12:43:04 -07:00
2010-05-31 20:50:29 +09:00
2010-05-21 18:31:14 -04:00
2010-05-27 22:05:02 -04:00
2010-07-27 11:56:06 -04:00
2010-05-27 22:06:06 -04:00
2010-05-25 08:07:06 -07:00
2010-05-27 09:12:47 -07:00
2010-05-27 22:06:06 -04:00
2010-05-30 09:11:11 -07:00
2010-05-27 22:15:47 -04:00
2010-05-30 09:11:11 -07:00
2010-01-26 22:22:26 -05:00
2010-05-27 22:15:42 -04:00
2010-05-23 08:27:42 +01:00
2010-06-04 17:16:29 -04:00
2010-05-27 22:16:05 -04:00
2010-05-27 22:15:42 -04:00
2010-05-30 09:11:11 -07:00
2010-05-30 09:11:11 -07:00
2010-07-27 11:56:06 -04:00
2010-05-27 22:03:07 -04:00
2010-05-27 22:03:05 -04:00
2010-05-27 22:15:33 -04:00
2010-05-27 22:05:02 -04:00
2010-03-30 22:02:32 +09:00
2010-06-01 08:11:06 -07:00
2010-03-06 11:26:46 -08:00
2010-03-30 22:02:32 +09:00
2010-06-04 15:21:45 -07:00
2010-03-30 22:02:32 +09:00
2010-01-29 08:22:01 -08:00
2010-03-30 22:02:32 +09:00
2010-03-19 08:05:10 +01:00
2010-06-10 19:08:34 +02:00
2010-05-27 22:15:33 -04:00
2010-03-06 11:26:45 -08:00
2010-04-29 08:44:37 -07:00
2010-06-04 15:21:44 -07:00
2010-05-21 18:31:16 -04:00
2010-07-27 11:56:06 -04:00
2010-05-21 18:31:16 -04:00
2010-03-30 22:02:32 +09:00
2010-05-11 17:43:58 +02:00
2010-05-27 09:12:46 -07:00
2010-06-04 17:16:28 -04:00
2010-03-30 22:02:32 +09:00
2010-05-27 22:03:07 -04:00
2010-03-06 11:26:29 -08:00
2010-03-30 22:02:32 +09:00
2010-06-01 12:42:12 +02:00
2010-05-21 18:31:18 -04:00
2010-05-21 18:31:22 -04:00
2010-05-21 18:31:16 -04:00
2010-05-21 18:31:18 -04:00
2010-03-30 22:02:32 +09:00
2010-03-19 09:43:06 -07:00
2010-06-04 17:16:28 -04:00
2010-03-08 16:55:37 +01:00
2010-05-21 18:31:17 -04:00
2010-03-30 22:02:32 +09:00
2010-05-27 22:03:06 -04:00
2010-05-18 08:57:00 +10:00
2010-03-03 13:00:21 -05:00
2010-05-21 18:31:17 -04:00
2010-06-10 19:08:34 +02:00
2010-03-03 13:00:22 -05:00
2010-03-03 14:07:55 -05:00
2010-05-27 09:12:56 -07:00
2010-03-12 15:52:32 -08:00
2010-03-07 15:48:26 -08:00
2010-03-30 22:02:32 +09:00
2010-05-25 10:25:26 +02:00
2009-12-17 10:58:17 -05:00
2009-12-23 13:33:54 +01:00
2010-05-21 18:31:17 -04:00
2010-05-30 09:11:11 -07:00
2010-06-01 12:42:12 +02:00
2010-05-20 13:21:42 -07:00
2010-03-30 22:02:32 +09:00
2010-05-21 18:31:18 -04:00