Project

General

Profile

Feature #11459

mdb: disk_label should allow to set sector size (add ::sectorsize)

Added by Toomas Soome about 1 month ago. Updated 18 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
mdb - modular debugger
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

The current mdb disk_label code is built assuming 512B sector size. Add ::sectorsize [size] command to show and set different value.

Note that the size argument is defaulting to hexadecimal value.

Example:

# mdb /dev/rdsk/c3t0d0p0
> ::load disk_label
> ::sectorsize
Current sector size is 512 (0x200)
> ::sectorsize 200
> ::sectorsize
Current sector size is 512 (0x200)
> ::sectorsize 400
> ::sectorsize
Current sector size is 1024 (0x400)
> ::sectorsize 0t4096
> ::sectorsize
Current sector size is 4096 (0x1000)
> 

History

#1

Updated by Toomas Soome 18 days ago

  • Description updated (diff)
#2

Updated by Electric Monk 18 days ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit fed692705a66b80d86971df5b579fcac7386f7df

commit  fed692705a66b80d86971df5b579fcac7386f7df
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-31T07:57:58.000Z

    11459 mdb: disk_label should allow to set sector size (add ::sectorsize)
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF