diff options
author | green <green@FreeBSD.org> | 2000-03-20 16:28:35 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2000-03-20 16:28:35 +0000 |
commit | 8d6ef7262607df09489a4257d8bc914b7dfaec05 (patch) | |
tree | 76657f40651196206554d5cde83f68b328ab40b0 /share/examples | |
parent | 5802589ba8a4501696e3241529b0cfdd5011d0fc (diff) | |
download | FreeBSD-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