Re: Proposal: devfs names ending in %d or %u

2000-12-25 Thread idalton
On Sun, Dec 24, 2000 at 11:02:39PM -0800, Barry K. Nathan wrote: > Eric Shattow wrote: > [snip] > > when i insert a FAT formatted disc with a PC partition table, the partition > > i want to mount is part1. when i insert a HFS formatted disc with a MAC > > partition table, the partition i want to

Re: Proposal: devfs names ending in %d or %u

2000-12-24 Thread Barry K. Nathan
Eric Shattow wrote: [snip] > when i insert a FAT formatted disc with a PC partition table, the partition > i want to mount is part1. when i insert a HFS formatted disc with a MAC > partition table, the partition i want to mount is part4. this is very ugly, and it has nothing to do with devfs. Th

Re: Proposal: devfs names ending in %d or %u

2000-12-24 Thread Eric Shattow
On Sun, 24 Dec 2000, Adam J. Richter wrote: > I propose to change the devfs registration functions > to allow registrations of devices ending in %d or %u, in which > case it will use the first value, starting at 0, that generates a > string that already registered. So, if I have disc0, disc

Proposal: devfs names ending in %d or %u

2000-12-24 Thread Adam J. Richter
It seems that just about everything that uses devfs contains some logic that attempts to construct an unused device name with something like: static devnum = 0; sprintf (name, "lp%d", devnum++); devfs_register_device(..., name,...); Besides duplicating a