SUMMARY: finding DEVICE ID and INODE of a file using truss and ls tat - why a difference?

From: Largent, Aaron <ALargent_at_concordefs.com>
Date: Wed May 07 2003 - 15:34:07 EDT
many thanks to David Markowitz, Casper Dik, and Daubigne Sebastien!


QUESTION SUMMARY:
----------------

why does "pfiles" report a device ID of 156,2001
while "truss" reports a device ID of 0x027007D1


ANSWER:
----------------

0x027007D1 --- hex-to-bin --->  00000010011100000000011111010001

/usr/include/sys/mkdev.h defines that the number of bits
for a Major is 14, while a Minor is 18, thus:


00000010011100 000000011111010001 == 156,2001
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed May 7 15:34:01 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:10 EST