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

2007-12-25 1:13:00

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

Comments

Got something to say?

You must be logged in to post a comment.