DragonFly BSD
DragonFly bugs List (threaded) for 2004-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: pstat / swapinfo prints wrong output

From: Eirik Nygaard <eirikn@xxxxxxxxxxxx>
Date: Sat, 3 Jan 2004 13:47:16 +0100

On Fri, Jan 02, 2004 at 11:15:53AM -0800, Matthew Dillon wrote:
> :[eirik@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@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@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.


Eirik Nygaard

Attachment: pgp00001.pgp
Description: PGP signature

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]