Re: devfs debate

Jochen Heuer (jogi@planetzork.ping.de)
Thu, 6 Aug 1998 00:31:29 +0200


On Wed, Aug 05, 1998 at 03:03:15PM -0400, Andrew J. Anderson wrote:
> On Wed, 5 Aug 1998, Peter T. Breuer wrote:

[...]

> > OK, have them, but put in the symbolic links with human names.
>
> sigh. that's what devfs _does_ if you let it. Or you can _CHOOSE_ not to
> even use it. I'm not proposing to force you to use something different,
> I'm asking you to acknowledge that there is a group of people in the Linux
> community that would greatly benefit from this, and that there is no
> reason to be opposing it as much as you have been.

This is how my /dev looks like -- btw. I'm using devfs:

[jogi@planetzork jogi]$ ls -l /dev/sd*
lr-xr-xr-x 1 root root 0 Jan 1 1970 /dev/sda -> sd/c0b0t0u0
lr-xr-xr-x 1 root root 0 Jan 1 1970 /dev/sda1 -> sd/c0b0t0u0p1
lr-xr-xr-x 1 root root 0 Jan 1 1970 /dev/sda2 -> sd/c0b0t0u0p2
lr-xr-xr-x 1 root root 0 Jan 1 1970 /dev/sda3 -> sd/c0b0t0u0p3
lr-xr-xr-x 1 root root 0 Jan 1 1970 /dev/sda5 -> sd/c0b0t0u0p5
lr-xr-xr-x 1 root root 0 Jan 1 1970 /dev/sda6 -> sd/c0b0t0u0p6
lr-xr-xr-x 1 root root 0 Jan 1 1970 /dev/sda7 -> sd/c0b0t0u0p7

/dev/sd:
total 11
brw-r----- 1 root root 8, 0 Jan 1 1970 c0b0t0u0
brw-r----- 1 root root 8, 1 Jan 1 1970 c0b0t0u0p1
brw-r----- 1 root root 8, 2 Jan 1 1970 c0b0t0u0p2
brw-r----- 1 root root 8, 3 Jan 1 1970 c0b0t0u0p3
brw-r----- 1 root root 8, 5 Jan 1 1970 c0b0t0u0p5
brw-r----- 1 root root 8, 6 Jan 1 1970 c0b0t0u0p6
brw-r----- 1 root root 8, 7 Jan 1 1970 c0b0t0u0p7

Furthermore I have a spare disk which I use for cd burning. This disk
is off most of the time because it's old and makes real noise.

If I want to use it I switch it on and do a

echo "scsi add-single-device 0 0 5 0">/proc/scsi/scsi

and now I have two more devices:

brw-r----- 1 root root 8, 16 Jan 1 1970 c0b0t5u0
brw-r----- 1 root root 8, 17 Jan 1 1970 c0b0t5u0p1

lr-xr-xr-x 1 root root 0 Jan 1 1970 /dev/sdb -> sd/c0b0t5u0
lr-xr-xr-x 1 root root 0 Jan 1 1970 /dev/sdb1 -> sd/c0b0t5u0p1

This is nice but not the real point. If I have powered up my
external mo-disk the above disk is not necessary /dev/sdb any more
because my mo-disk is on id 3.
You cannot even say which disk is your current /dev/sdb because it depends
which disk is powered up and added first. Now make a cd-image
on /dev/sdb instead of /dev/sd/c0b0t5u0 and play roulette ...
All data of the mo might be lost. Tried once ... :(

That's why I like devfs. Although it's not perfect it's a *good*
startingpoint ...

Just my opinion.

Regards,

Jogi

-- 

Well, yeah ... I suppose there's no point in getting greedy, is there?

<< Calvin & Hobbes >>

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html