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

From: Largent, Aaron (ALargent@concordefs.com)
Date: Wed May 07 2003 - 15:31:14 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



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:21 EDT