summaryrefslogtreecommitdiffstats
path: root/share/examples
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2000-03-20 16:28:35 +0000
committergreen <green@FreeBSD.org>2000-03-20 16:28:35 +0000
commit8d6ef7262607df09489a4257d8bc914b7dfaec05 (patch)
tree76657f40651196206554d5cde83f68b328ab40b0 /share/examples
parent5802589ba8a4501696e3241529b0cfdd5011d0fc (diff)
downloadFreeBSD-src-8d6ef7262607df09489a4257d8bc914b7dfaec05.zip
FreeBSD-src-8d6ef7262607df09489a4257d8bc914b7dfaec05.tar.gz
Split the logic of
static int setrootbyname(char *name); out into dev_t getdiskbyname(char *name); This makes it easy to create a new DDB command, which is the big reason for the change. You can now do the following in DDB: Example rc.conf entry: dumpdev="/dev/ad0s1b" # Device name to crashdump to (if enabled). db> show disk/ad0s1b dev_t = 0xc0b7ea00 db> p *dumpdev c0b7ea00
Diffstat (limited to 'share/examples')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud