Eric Kustarz's Weblog

e-street

All | FileBench | NFS | SETUP | ZFS

20070801 Wednesday August 01, 2007

 how to get the spa_history's bonus buffer

Here's a quick debugging note on how to get the offsets of the pool's history log:

> ::spa
ADDR                 STATE NAME                                                
fffffffec529d5c0    ACTIVE d
> fffffffec529d5c0::print spa_t spa_history
spa_history = 0xd
> ::dbufs -n mos -o 0xd -b bonus
0xffffffff39948990
> 0xffffffff39948990::print dmu_buf_t db_data | ::print spa_history_phys_t
{
    sh_pool_create_len = 0x10c
    sh_phys_max_off = 0x2000000
    sh_bof = 0x10c
    sh_eof = 0x30c
    sh_records_lost = 0
}
> 


(2007-08-01 08:53:09.0/2007-08-01 08:53:09.0) Permalink
Trackback: http://blogs.sun.com/erickustarz/en_US/entry/using_mdb_to_get_the

Comments:

Post a Comment:

Comments are closed for this entry.

« September 2008
SunMonTueWedThuFriSat
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today


XML





Today's Page Hits: 90