Files
kernel-tenderloin-3.0/include/linux
Evgeniy Dushistov 10e5dce07e [PATCH] ufs: truncate should allocate block for last byte
This patch fixes buggy behaviour of UFS
in such kind of scenario:
open(, O_TRUNC...)
ftruncate(, 1024)
ftruncate(, 0)

Such a scenario causes ufs_panic and remount read-only.  This happen
because of according to specification UFS should always allocate block for
last byte, and many parts of our implementation rely on this, but
`ufs_truncate' doesn't care about this.

To make possible return error code and to know about old size, this patch
removes `truncate' from ufs inode_operations and uses `setattr' method to
call ufs_truncate.

Signed-off-by: Evgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-07-01 09:56:03 -07:00
..
2006-06-27 17:32:38 -07:00
2006-03-28 09:16:05 -08:00
2006-03-23 07:38:09 -08:00
2006-06-26 09:58:36 -07:00
2006-05-08 16:32:05 -07:00
2006-06-08 15:14:23 -07:00
2006-06-23 02:07:36 -07:00
2006-03-31 12:18:54 -08:00
2006-06-30 18:20:44 +02:00
2006-06-25 10:01:19 -07:00
2006-03-26 08:56:56 -08:00
2006-06-26 09:58:34 -07:00
2006-03-20 17:09:11 -08:00
2006-03-20 22:41:23 -08:00
2006-06-27 17:32:47 -07:00
2006-06-26 01:51:23 -04:00
2006-06-20 20:24:58 -07:00
2006-03-20 22:21:10 -08:00
2006-06-21 12:40:49 -07:00
2006-06-23 07:43:08 -07:00
2006-06-27 01:24:15 -04:00
2006-06-05 12:29:17 -07:00
2006-03-22 07:53:57 -08:00
2006-06-25 10:01:13 -07:00
2006-03-23 07:38:14 -08:00
2006-03-23 07:38:14 -08:00
2006-06-29 16:58:06 -07:00
2006-03-20 13:44:40 -05:00
2006-06-25 06:27:31 -04:00
2006-06-25 10:01:09 -07:00
2006-06-22 15:05:56 -07:00
2006-03-27 08:44:48 -08:00
2006-05-04 06:55:12 +02:00
2006-06-28 15:54:27 -07:00
2006-06-23 07:42:49 -07:00
2006-06-25 10:01:06 -07:00
2006-06-25 10:01:06 -07:00
2006-06-25 10:01:14 -07:00
2006-06-30 11:25:38 -07:00
2006-06-27 17:32:47 -07:00
2006-06-17 21:29:55 -07:00
2006-03-23 07:38:12 -08:00
2006-04-02 00:08:05 -05:00
2006-06-30 14:12:10 -07:00
2006-06-30 11:25:37 -07:00
2006-03-28 09:16:05 -08:00
2006-06-23 07:43:06 -07:00
2006-06-27 17:32:47 -07:00
2006-06-26 10:51:09 -07:00
2006-03-31 12:18:56 -08:00
2006-03-23 07:38:14 -08:00
2006-06-30 18:25:18 +02:00
2006-06-30 11:25:36 -07:00
2006-03-23 07:12:57 -05:00