Hi,

zfs_mknode() called from zfs_create() used to create device special file in
solaris kernel. I traverse the code and found how they stores the minor
number, which is in znode's attributes field.

*if* (obj_type == DMU_OT_ZNODE ||  (vap->va_type == VBLK ||
vap->va_type == VCHR)) {
 SA_ADD_BULK_ATTR(sa_attrs, cnt, SA_ZPL_RDEV(zfsvfs), NULL, &rdev, 8);
}

struct sa_bulk_attr field
{

.....

uint16_t
sa_buftype

....
                 }

which is of 16bit. so, it just store minor number and not a major number in
its attributes.

so, can somebody clarify where/how the major number stores in solaris code
or in znode(disk inode).

Regards,
Deepen Mehta
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to