NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: question about paritions/disklabel
Martin Husemann <martin%duskware.de@localhost> wrote ..
> On Mon, Feb 18, 2013 at 08:38:22AM +0100, Luca Ferrari wrote:
> > 16 partitions:
>
> This is the maximum number of partitions that this disklabel could have.
> The number varies between arches (and NetBSD versions).
>
> > # size offset fstype [fsize bsize cpg/sgs]
> > a: 4192256 2048 4.2BSD 2048 16384 0 # (Cyl. 2*-
> > 4161*)
> > c: 4192256 2048 unused 0 0 # (Cyl. 2*-
> > 4161*)
> > d: 4194304 0 unused 0 0 # (Cyl. 0 -
> > 4161*)
>
> And this is the list of all partitions that are not marked "unused".
>
>
> Martin
Thank you,
I'm curious about why I'm receiving this error with dkctl
# dkctl wd1 getcache
dkctl: /dev/rwd1: getcache: Inappropriate ioctl for device
if i make a little test program 'testio':
dvname = argv[1];
fd = opendisk(dvname, O_RDONLY, dvname_store, sizeof(dvname_store), 0);
if (ioctl(fd, DIOCGCACHE, &bits) == -1)
err(1, "%s: getcache", dvname);
printf("%s: OK\n",dvname);
(void)close(fd);
# ./testio /dev/wd0
/dev/wd0: OK
# ./testio /dev/wd1
testio: /dev/wd1: getcache: Inappropriate ioctl for device
# ./testio /dev/wd2
testio: /dev/wd2: getcache: Bad file descriptor
(ie, no wd2 on this system so message expected)
/usr/include/errno.h:
#define ENOTTY 25 /* Inappropriate ioctl for device */
I'm trying to figure out what would cause a ENOTTY on /dev/wd1
# ./testio /dev/rwd1e
/dev/rwd1e: OK
# /sbin/dkctl /dev/rwd1e
strategy:
/dev/rwd1e: priocscan
cache:
/dev/rwd1e: read cache enabled
/dev/rwd1e: write-back cache enabled
/dev/rwd1e: read cache enable is not changeable
/dev/rwd1e: write cache enable is changeable
/dev/rwd1e: cache parameters are not savable
wedges:
/dev/rwd1e: no wedges configured
Maybe I'm over-analyzing it, and there's no issue!
Thank you,
--
Waitman Gobble
San Jose California USA
Home |
Main Index |
Thread Index |
Old Index