From: Dmitriy Monakhov simple test: strace dd if=/dev/zero of=/mnt/file open("/dev/zero", O_RDONLY) = 0 close(1) = 0 open("/mnt/test/file", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 1 read(0, "\0\0\0\0\0\0\0\0\0"..., 512) = 512 write(1, "\0\0\0\0\0\0\0\0"..., 512) = 512 read(0, "\0\0\0\0\0\0\0\0\0"..., 512) = 512 write(1, "\0\0\0\0\0\0\0\0"..., 512) = -1 ENOENT (No such fil e or directory) This strange error returned from ext4_reserve_global(). It's just typo because: a) In fact this is 100% ENOSPC situation b) simular function ext4_reserve_local() returns -ENOSPC Signed-off-by: Mingming Cao Signed-off-by: Dmitriy Monakhov --- fs/ext4/balloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.23-rc3/fs/ext4/balloc.c =================================================================== --- linux-2.6.23-rc3.orig/fs/ext4/balloc.c 2007-08-14 16:37:58.000000000 -0700 +++ linux-2.6.23-rc3/fs/ext4/balloc.c 2007-08-14 17:11:34.000000000 -0700 @@ -1920,7 +1920,7 @@ int ext4_reserve_global(struct super_blo { struct ext4_sb_info *sbi = EXT4_SB(sb); struct ext4_reservation_slot *rs; - int i, rc = -ENOENT; + int i, rc = -ENOSPC; __u64 free = 0; rs = sbi->s_reservation_slots;