altering a kernel data structure ssd sd_lun

  • Follow


Can anyone tell me if it is possible to modify a driver variable with
mdb?

The ssd driver module has a struct for each lun and the struct has a
member called un_retry_count. The default value is 0x3 and there is no
user accessible method to change it for Solaris 10.

I can see the current value using this command...
echo "*ssd_state::walk softstate |::print -t struct sd_lun
un_retry_count "| mdb -k

OUTPUT...
uint_t un_retry_count = 0x3
uint_t un_retry_count = 0x3
uint_t un_retry_count = 0x3

Is it possible to modify the value of sd_lun.un_retry_count per lun? I
tried the following, but no luck...

echo "*ssd_state::walk softstate |::typeset struct sd_lun
un_retry_count 0x5 "| mdb -kw

No error occurs but the value is not changed.

I only want to change this value on a test machine for a specific test
case.

Thanks,
Vic
0
Reply victor 2/8/2008 6:04:40 PM


0 Replies
203 Views

(page loaded in 0.025 seconds)


Reply: