[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/54470: Adapt FFS to work with HP-UX UFS1 variant
Can you be more specific? It gives the right values for my HP-UX image,
and for existing NetBSD file systems.
On 8/15/2019 11:05 PM, Michael van Elst wrote:
The following reply was made to PR kern/54470; it has been noted by GNATS.
From: mlelstv%serpens.de@localhost (Michael van Elst)
Subject: Re: kern/54470: Adapt FFS to work with HP-UX UFS1 variant
Date: Fri, 16 Aug 2019 06:01:33 -0000 (UTC)
>+ * Turn byte counts into disk block counts.
>+ * Performs the same function as btodb(), but without
>+ * depending on a priori knowledge of DEV_BSIZE.
>+#define BTODB(fs, size) ((size) >> ((fs)->fs_fshift - (fs)->fs_fsbtodb))
>+#define DBTOB(fs, bc) ((bc) << ((fs)->fs_fshift - (fs)->fs_fsbtodb))
I fear that doesn't work out.
Michael van Elst
"A potential Snark may lurk in every tree."
Main Index |
Thread Index |