Tao Ma 0e116227a0 ocfs2: Fix a bug in direct IO read.
ocfs2 will become read-only if we try to read the bytes which pass
the end of i_size. This can be easily reproduced by following steps:
1. mkfs a ocfs2 volume with bs=4k cs=4k and nosparse.
2. create a small file(say less than 100 bytes) and we will create the file
   which is allocated 1 cluster.
3. read 8196 bytes from the kernel using O_DIRECT which exceeds the limit.
4. The ocfs2 volume becomes read-only and dmesg shows:
OCFS2: ERROR (device sda13): ocfs2_direct_IO_get_blocks:
Inode 66010 has a hole at block 1
File system is now read-only due to the potential of on-disk corruption.
Please run fsck.ocfs2 once the file system is unmounted.

So suppress the ERROR message.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
2008-09-10 01:44:08 -07:00
..
2008-05-21 16:55:59 -07:00
2008-09-10 01:44:08 -07:00
2007-10-16 09:42:58 -07:00
2008-01-25 14:45:34 -08:00
2007-10-12 11:54:38 -07:00
2008-01-25 15:05:44 -08:00
2007-04-26 15:10:40 -07:00
2008-01-25 15:05:44 -08:00
2008-01-25 14:46:01 -08:00
2008-04-18 08:56:11 -07:00
2008-02-03 17:33:42 +02:00
2008-01-25 15:05:46 -08:00