Subject: port-macppc/23923: libsa missing support for APPLE_UFS
To: None <>
From: Darrin B. Jewell <>
List: netbsd-bugs
Date: 12/29/2003 00:17:13
>Number:         23923
>Category:       port-macppc
>Synopsis:       libsa missing support for APPLE_UFS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 29 05:18:00 UTC 2003
>Originator:     Darrin B. jewell
>Release:        -current, updated via cvs ~20031227T2330Z
src/sys/lib/libsa/ufs_ls.c version:
 $NetBSD: ufs_ls.c,v 1.6 2003/08/07 16:32:31 agc Exp $

libsa's does not correctly handle the 1024 byte DIRBLKSIZ
that can be encountered on APPLE_UFS filesystems.

See also kern/17345 "Apple UFS filesystem support, patches included"


Code inspection.

Most of the time libsa will just work, but it could potentially
encounter directories which it will not read correctly.


Tweak directory block reading code in libsa to handle records
that may cross 512 byte boundaries.