public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Problem with ufs nextstep in 2.6.18 (debian)
@ 2007-11-20 20:29 Dave Bailey
  2007-11-21 15:37 ` Jan Kara
  2007-11-22  4:19 ` Evgeniy Dushistov
  0 siblings, 2 replies; 10+ messages in thread
From: Dave Bailey @ 2007-11-20 20:29 UTC (permalink / raw)
  To: linux-kernel; +Cc: Evgeniy Dushistov

This problem has been around since kernel 2.6.16, and I see it in
2.6.23.1-10.fc7. It occurs in the ufs_check_page function of ufs/dir.c
at the Espan test, which seems unnecessary for NextStep/OpenStep
files systems. The following patch preserves the test for other file
systems and makes the mount useful for NextStep/OpenStep:
(against the 2.6.23.1-10.fc7 source tree)

dsb@Zeno-Dyn[1012]$ diff dir.c dir.c.orig
108,110d107
<       unsigned mnext = UFS_SB(sb)->s_mount_opt &
<         (UFS_MOUNT_UFSTYPE_NEXTSTEP || UFS_MOUNT_UFSTYPE_NEXTSTEP_CD ||
<          UFS_MOUNT_UFSTYPE_OPENSTEP);
131c128
<               if ((mnext == 0) & (((offs + rec_len - 1) ^ offs) & 
~chunk_mask))
---
 >               if (((offs + rec_len - 1) ^ offs) & ~chunk_mask)


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Problem with ufs nextstep in 2.6.18 (debian)
@ 2007-11-25  1:26 Dave Bailey
  0 siblings, 0 replies; 10+ messages in thread
From: Dave Bailey @ 2007-11-25  1:26 UTC (permalink / raw)
  To: linux-kernel; +Cc: Evgeniy Dushistov

This fixes only symptom, not illness.
This check represent what code think about filesystem layout.
On what actually kind of UFS system did you test this patch?
When I sometime ago fixed similar issue for openstep ufs,
actully this was darwin's ufs which has the same layout,
I just set s_dirblksize to right value, may be for 
UFS_MOUNT_UFSTYPE_NEXTSTEP, UFS_MOUNT_UFSTYPE_NEXTSTEP_CD you need
do the same, see TODO items in fs/ufs/super.c.

-- 
/Evgeniy

Your right; I was using the NextStep ufstype on an OpenStep HD.
I have now checked an old (pre NS 3.3) floppy and a NS 3.3 CDROM
and they both need a  s_dirblksize  of 1024, just as the OpenStep
filesystem does. For the floppies, one can just use the OpenStep
option, but for a NextStep CDROM, the right s_dirblksize is
crucial. I would suggest changing both.

Thanks for the response,

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Problem with ufs nextstep in 2.6.18 (debian)
@ 2007-04-16  7:32 Evgeniy Dushistov
  2007-04-16 16:04 ` Dale Amon
  2007-04-19 16:39 ` Dale Amon
  0 siblings, 2 replies; 10+ messages in thread
From: Evgeniy Dushistov @ 2007-04-16  7:32 UTC (permalink / raw)
  To: Dale Amon, linux-kernel; +Cc: Andrew Morton

>The error also happens in 2.6.19, same as in 2.6.18.
>I extracted this from syslog: 
>Apr 17 00:14:15 kdev kernel: UFS-fs error (device loop0):
>ufs_check_page: bad entry

Is this happened also with this patch:
http://lkml.org/lkml/diff/2007/2/5/75/1
?

-- 
/Evgeniy


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Problem with ufs nextstep in 2.6.18 (debian)
@ 2007-04-15  1:38 Dale Amon
  2007-04-15 23:11 ` Dale Amon
  0 siblings, 1 reply; 10+ messages in thread
From: Dale Amon @ 2007-04-15  1:38 UTC (permalink / raw)
  To: linux-kernel

I recently noticed that I can no longer read my 
images of NeXTstep floppies on certain machines.
All are running an up to date etch distribution
but the difference between where I can read or not
read seems to be the linux version. On a 2.6.18
machine:

# mount -t ufs -o ro,ufstype=nextstep,loop nextfloppy-fd0a.ufs /floppy
# ls /floppy
ls: reading directory /floppy: Input/output error

On a 2.6.13 machine it still works fine:

# mount -t ufs -o ro,ufstype=nextstep,loop nextfloppy-fd0a.ufs /floppy
# ls /floppy/
private
# ls /floppy/private
Drivers

Have there been any recent changes that would cause a 
breakage in this area?


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-11-25  1:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-20 20:29 Problem with ufs nextstep in 2.6.18 (debian) Dave Bailey
2007-11-21 15:37 ` Jan Kara
2007-11-22  4:19 ` Evgeniy Dushistov
  -- strict thread matches above, loose matches on Subject: below --
2007-11-25  1:26 Dave Bailey
2007-04-16  7:32 Evgeniy Dushistov
2007-04-16 16:04 ` Dale Amon
2007-04-17  1:10   ` Dale Amon
2007-04-19 16:39 ` Dale Amon
2007-04-15  1:38 Dale Amon
2007-04-15 23:11 ` Dale Amon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox