pstat / swapinfo prints wrong output
Eirik Nygaard
eirikn at kerneled.com
Sat Jan 3 04:47:59 PST 2004
On Fri, Jan 02, 2004 at 11:15:53AM -0800, Matthew Dillon wrote:
>
> :[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>
>
>
Here is the patch, I havn't tested it to much yet, so feedback is very
welcome. If you remove every entry in /dev befor recreating it, make sure
it creates all you disk devices. It did not create ad0s[34][a-h] for me,
and that really screwed things up here. Just so you are warned.
http://eirikn.kerneled.com/dragonfly/remove-historical-r-in-devices.diff
--
Eirik Nygaard
eirikn at xxxxxxxxxxxx
Attachment:
pgp00001.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00001.pgp
Type: application/octet-stream
Size: 187 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20040103/d44f7a12/attachment-0022.obj>
More information about the Bugs
mailing list