Re: [zfs-discuss] ZFS hex dump diagrams?

2010-03-26 Thread Eric D. Mudama

On Fri, Mar 26 at 11:10, Sanjeev wrote:

On Thu, Mar 25, 2010 at 02:45:12PM -0700, John Bonomi wrote:

I'm sorry if this is not the appropriate place to ask, but I'm a
student and for an assignment I need to be able to show at the hex
level how files and their attributes are stored and referenced in
ZFS. Are there any resources available that will show me how this
is done?


You could try zdb.


Or just look at the source code.

--
Eric D. Mudama
edmud...@mail.bounceswoosh.org

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] ZFS hex dump diagrams?

2010-03-26 Thread m...@bruningsystems.com

Hi,

You might take a look at
http://www.osdevcon.org/2008/files/osdevcon2008-max.pdf
and
http://www.osdevcon.org/2008/files/osdevcon2008-proceedings.pdf, starting
at page 36.

Or you might just use od -x file for the file part of your assignment.

Have fun.
max


Eric D. Mudama wrote:

On Fri, Mar 26 at 11:10, Sanjeev wrote:

On Thu, Mar 25, 2010 at 02:45:12PM -0700, John Bonomi wrote:

I'm sorry if this is not the appropriate place to ask, but I'm a
student and for an assignment I need to be able to show at the hex
level how files and their attributes are stored and referenced in
ZFS. Are there any resources available that will show me how this
is done?


You could try zdb.


Or just look at the source code.



___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] ZFS hex dump diagrams?

2010-03-26 Thread Richard Elling
On Mar 25, 2010, at 2:45 PM, John Bonomi wrote:

 I'm sorry if this is not the appropriate place to ask, but I'm a student and 
 for an assignment I need to be able to show at the hex level how files and 
 their attributes are stored and referenced in ZFS. Are there any resources 
 available that will show me how this is done?

IMHO the best place to start with this level of analysis is the ZFS on-disk
specification doc:
http://hub.opensolaris.org/bin/download/Community+Group+zfs/docs/ondiskformat0822.pdf

It is getting long in the tooth and doesn't document recent features, but
it is fundamentally correct.
 -- richard

ZFS storage and performance consulting at http://www.RichardElling.com
ZFS training on deduplication, NexentaStor, and NAS performance
Las Vegas, April 29-30, 2010 http://nexenta-vegas.eventbrite.com 





___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] ZFS hex dump diagrams?

2010-03-26 Thread m...@bruningsystems.com

Hi Richard,

Richard Elling wrote:

On Mar 25, 2010, at 2:45 PM, John Bonomi wrote:

  

I'm sorry if this is not the appropriate place to ask, but I'm a student and 
for an assignment I need to be able to show at the hex level how files and 
their attributes are stored and referenced in ZFS. Are there any resources 
available that will show me how this is done?



IMHO the best place to start with this level of analysis is the ZFS on-disk
specification doc:
http://hub.opensolaris.org/bin/download/Community+Group+zfs/docs/ondiskformat0822.pdf

It is getting long in the tooth and doesn't document recent features, but
it is fundamentally correct.
  

I completely agree with this, but good luck getting a hex dump from that
information.

max


___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] ZFS hex dump diagrams?

2010-03-25 Thread Sanjeev
John,

On Thu, Mar 25, 2010 at 02:45:12PM -0700, John Bonomi wrote:
 I'm sorry if this is not the appropriate place to ask, but I'm a student and 
 for an assignment I need to be able to show at the hex level how files and 
 their attributes are stored and referenced in ZFS. Are there any resources 
 available that will show me how this is done?

You could try zdb.

Thanks and regards,
Sanjeev
 -- 
 This message posted from opensolaris.org
 ___
 zfs-discuss mailing list
 zfs-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

-- 

Sanjeev Bagewadi
Solaris RPE 
Bangalore, India
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss