<br>Apology to post the solaris related query. Please ignore the mail.<br><br>Regards,<br>Deepen Mehta<br><br><div class="gmail_quote">On Wed, Jan 5, 2011 at 12:30 PM, Deepen Mehta <span dir="ltr">&lt;<a href="mailto:deepenmehta@gmail.com">deepenmehta@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br><br>zfs_mknode is the function use by mknod syscall to create device special file <br>

in solaris kernel. I traverse the code and just found how they stores the minor number<br>which is in znode&#39;s(disk inode of Linux) attributes struct called sa_bulk_attr field <br>

uint16_t sa_buftype which is of 16bit only. so, it just store minor number <br>in this field.<br>And I am failed to understand where/how the solaris exact stores major number <br>from code traversing.<br><br>so, can somebody clarify where/how the major number stores in solaris code<br>



or in znode(disk inode).<br><br>the source is available online and following link is of zfs_znode.c file having<br>zfs_mknode function... <br><a href="http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/fs/zfs/zfs_znode.c" target="_blank">http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/fs/zfs/zfs_znode.c</a><br>



<br>Regards,<br><font color="#888888">Deepen Mehta<br>
</font></blockquote></div><br>