ufs: restore back support of openstep
commita45d5cf5d2e068e533d9a80bdf2fbcd0bbadf641
authorEvgeniy Dushistov <dushistov@mail.ru>
Thu, 8 Feb 2007 22:20:25 +0000 (8 14:20 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Mar 2007 18:50:29 +0000 (9 10:50 -0800)
treecbf6b857f5d0bc9fa53d2943c9c4ee4496b95a2a
parent327da22cbc18e6c5b7e2cab04aa6315b59cbd0fa
ufs: restore back support of openstep

This is a fix of regression, which triggered by ~2.6.16.

Patch with name ufs-directory-and-page-cache-from-blocks-to-pages.patch: in
additional to conversation from block to page cache mechanism added new
checks of directory integrity, one of them that directory entry do not
across directory chunks.

But some kinds of UFS: OpenStep UFS and Apple UFS (looks like these are the
same filesystems) have different directory chunk size, then common
UFSes(BSD and Solaris UFS).

So this patch adds ability to works with variable size of directory chunks,
and set it for ufstype=openstep to right size.

Tested on darwin ufs.

Signed-off-by: Evgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ufs/dir.c
fs/ufs/super.c
include/linux/ufs_fs.h