tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ioctl equivalent to DIOCGSECTORSIZE in FreeBSD?

On Mar 5, 2010, at 7:06 PM, Klaus Heinz wrote:

> Michael van Elst wrote:
>> Currently you have several different methods, see sbin/fsck/partutil.c for an
>> example.
> Ok, so I use DIOCGDISKINFO first and fall back to DIOCGDINFO if it fails.
>> You will need -current to use a filesystem except maybe for msdosfs.
> I do not understand what you say here. For what do I _need_ -current?
> I surely want to get the sector size on -current but it also has to work
> on NetBSD-4 and -5.

Those versions of NetBSD do not support disks with sector sizes other than 512.

Home | Main Index | Thread Index | Old Index