On Sun, Jan 11, 2009 at 11:40 AM, Marvin Wang, Min <mail...@yahoo.com> wrote:
> sorry, my question might be misleading, I mean the starting datablock of a 
> file

"starting" is somewhat misleading, since zfs will allocate a new block
whenever a block is updated, so the physical blocks for a file is not
necessarily adjacent.

zdb -ddddd POOL_NAME/FS_NAME

shows something like this

    Object  lvl   iblk   dblk  lsize  asize  type
         5    1    16K  52.5K  52.5K  52.5K  ZFS plain file
                                 264  bonus  ZFS znode
        path    /XP/Logs/VBox.log.2
        uid     1000
        gid     120
        atime   Tue Nov 25 14:50:45 2008
        mtime   Tue Nov 25 16:54:11 2008
        ctime   Tue Dec 23 15:16:36 2008
        crtime  Tue Nov 25 14:50:45 2008
        gen     8419852
        mode    100600
        size    53438
        parent  14
        links   1
        xattr   0
        rdev    0x0000000000000000
Indirect blocks:
               0 L0 0:f53165800:d200 d200L/d200P F=1 B=8421332

                segment [0000000000000000, 000000000000d200) size 52.5K


I assume this is what you want (see Indirect blocks list)?

See http://www.cuddletech.com/blog/pivot/entry.php?id=980 for details.

Regards,

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

Reply via email to