NetBSD-Bugs archive

[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



The following reply was made to PR kern/54470; it has been noted by GNATS.

From: mlelstv%serpens.de@localhost (Michael van Elst)
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/54470: Adapt FFS to work with HP-UX UFS1 variant
Date: Sun, 18 Aug 2019 05:58:59 -0000 (UTC)

 perseant%hhhh.org@localhost (Konrad Schroder) writes:
 
 >     #define BTODB(size) ((size) >> dev_bshift)
 >     #define DBTOB(size) ((size) << dev_bshift)
 
 >and change the value of dev_bsize, if necessary, in the setup.  The 
 >kernel would do the same, but storing the dev_bshift value in struct 
 >ump.  Would this address your concern?
 
 I wouldn't call it dev_bshift to avoid confusion with DEV_BSHIFT and
 also would use functions to compute the di_blocks value.
 
 But I'm also not sure if HP-UX really uses the physical sector size
 as unit for di_blocks.
 
 Can you verify that it's not the fragment size ? That would be
 the most natural value and, by default, is 1024 for HP-UX. On
 the other hand, I haven't seen any HP-UX system that would
 use 1024 byte physical sectors.
 
 -- 
 -- 
                                 Michael van Elst
 Internet: mlelstv%serpens.de@localhost
                                 "A potential Snark may lurk in every tree."
 


Home | Main Index | Thread Index | Old Index