pstat / swapinfo prints wrong output
Matthew Dillon
dillon at apollo.backplane.com
Fri Jan 2 11:16:14 PST 2004
:[eirik at dfbsd sys]$ swapinfo
:Device 1K-blocks Used Avail Capacity Type
:/dev/rad0s4b 307072 0 307072 0% Interleaved
: ^
: Where does this 'r' come from?
:..
:--=20
:Eirik Nygaard
:eirikn at xxxxxxxxxxxx
The 'r' is historical, and can be removed. 'r' used to mean
'raw', as in 'raw character device', whereas the device without the
'r' meant block device. When block devices were removed all the
device names basically became character devices and it was decided
that the base name should be used instead of the 'r' prefixed name.
If you want to remove it, please do! Be careful, there might still
be code in various userland programs and/or the kernel that expect
the 'r' (but I think it's all gone by now. I hope!).
-Matt
Matthew Dillon
<dillon at xxxxxxxxxxxxx>
More information about the Bugs
mailing list