Re: mknod, devfs and FreeBSD

2007-01-31 Thread Freminlins

Ruben,

On 31/01/07, Ruben de Groot [EMAIL PROTECTED] wrote:


Not exactly. Solaris, especially Solaris 10 is relying more and more on
pseudo filesystems.

# uname -srpi
SunOS 5.10 sparc SUNW,Sun-Fire-V210
# mount | grep '^/devices'
/devices on /devices read/write/setuid/devices/dev=47c on Thu Nov  2
16:14:25 2006

Everything in /dev is just a symlink to /devices.




That's true BUT I can still use mknod to create a device node elsewhere and
it works.

I'm not complaining about devfs, just that I would be forced to use devfs on
FreeBSD when IMHO mknod would suffice and used to suffice.

--

Ruben




Frem.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mknod, devfs and FreeBSD

2007-01-31 Thread Ruben de Groot
On Tue, Jan 30, 2007 at 09:25:24AM +, Freminlins typed:
 Kris,
 
 On 29/01/07, Kris Kennaway [EMAIL PROTECTED] wrote:
 
 
 To put it bluntly, it's something you're just going to have to get
 over :-)
 
 
 That's unhelpful. It is, in my opinion, a bad idea to have to mount up 1400
 instances of devfs just to get a few device nodes. It just doesn't seem
 right. It's a kludge. What I will do instread is migrate the box to Solaris
 where I can do what I want to do.

Not exactly. Solaris, especially Solaris 10 is relying more and more on 
pseudo filesystems.

# uname -srpi
SunOS 5.10 sparc SUNW,Sun-Fire-V210
# mount | grep '^/devices'
/devices on /devices read/write/setuid/devices/dev=47c on Thu Nov  2 
16:14:25 2006

Everything in /dev is just a symlink to /devices.

--
Ruben

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mknod, devfs and FreeBSD

2007-01-30 Thread Freminlins

Kris,

On 29/01/07, Kris Kennaway [EMAIL PROTECTED] wrote:



To put it bluntly, it's something you're just going to have to get
over :-)



That's unhelpful. It is, in my opinion, a bad idea to have to mount up 1400
instances of devfs just to get a few device nodes. It just doesn't seem
right. It's a kludge. What I will do instread is migrate the box to Solaris
where I can do what I want to do.

It's a poor argument to say basically that's the way it is. I have always
found FreeBSD to be flexible, not restrictive.

If devfs is the only way to go, why does mknod still exist? Why does it
allow me to create device nodes that don't work?

Kris


Frem.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mknod, devfs and FreeBSD

2007-01-30 Thread Kris Kennaway
On Tue, Jan 30, 2007 at 09:25:24AM +, Freminlins wrote:
 Kris,
 
 On 29/01/07, Kris Kennaway [EMAIL PROTECTED] wrote:
 
 
 To put it bluntly, it's something you're just going to have to get
 over :-)
 
 
 That's unhelpful. It is, in my opinion, a bad idea to have to mount up 1400
 instances of devfs just to get a few device nodes. It just doesn't seem
 right. It's a kludge. What I will do instread is migrate the box to Solaris
 where I can do what I want to do.

OK.

 It's a poor argument to say basically that's the way it is. I have always
 found FreeBSD to be flexible, not restrictive.

That's the way it is is a statement of truth, not an argument.

 If devfs is the only way to go, why does mknod still exist? Why does it
 allow me to create device nodes that don't work?

Compatibility with other OSes when used as an NFS server.

Kris


pgpnT0brPNzkz.pgp
Description: PGP signature


Re: mknod, devfs and FreeBSD

2007-01-29 Thread Freminlins

Kris,

On 28/01/07, Kris Kennaway [EMAIL PROTECTED] wrote:



I not understand this no sentence :)



Sorry, I didn't read what I typed. I meant to type Was the effect of this
considered at all?

What reasons, other than cosmetic, do you have for not wanting to do

this?



Well, I am sure you would agree it is simpler to mknod for a small subset of
/dev than to mount a devfs. Also, it means I have to migrate my existing set
up which works perfectly as it is.

It isn't just cosmetic, it really is more awkward than running mknod. I take
your point that there's no technical reason not to do this, but it isn't
pretty.

Kris


Frem.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mknod, devfs and FreeBSD

2007-01-29 Thread Kris Kennaway
On Mon, Jan 29, 2007 at 01:07:25PM +, Freminlins wrote:
 Kris,
 
 On 28/01/07, Kris Kennaway [EMAIL PROTECTED] wrote:
 
 
 I not understand this no sentence :)
 
 
 Sorry, I didn't read what I typed. I meant to type Was the effect of this
 considered at all?

Yes it was.  The benefits of dynamic devices were considered to
outweight the downsides of having to mount a devfs instance.

 What reasons, other than cosmetic, do you have for not wanting to do
 this?
 
 
 Well, I am sure you would agree it is simpler to mknod for a small subset of
 /dev than to mount a devfs. Also, it means I have to migrate my existing set
 up which works perfectly as it is.

Actually I disagree.  Once you write the simple devfs ruleset it is a
single command to instantiate a new /dev.  You don't have to worry
about making each individual device node N times and possibly making a
mistake.  Of course you probably have a script to do this now, but
that just means you need to adjust your script as part of your
migration strategy.

 It isn't just cosmetic, it really is more awkward than running mknod. I take
 your point that there's no technical reason not to do this, but it isn't
 pretty.

To put it bluntly, it's something you're just going to have to get
over :-)

Kris

pgpnzCOgZwbcz.pgp
Description: PGP signature


Re: mknod, devfs and FreeBSD

2007-01-28 Thread Freminlins

Kris,

On 26/01/07, Kris Kennaway [EMAIL PROTECTED] wrote:



Sorry, it's the only way.



Was the considered at all? There's simply no way that I would mount up 1400
devfs. It is a backward step.

Kris





Frem.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mknod, devfs and FreeBSD

2007-01-28 Thread Kris Kennaway
On Sun, Jan 28, 2007 at 03:56:29PM +, Freminlins wrote:
 Kris,
 
 On 26/01/07, Kris Kennaway [EMAIL PROTECTED] wrote:
 
 
 Sorry, it's the only way.
 
 
 Was the considered at all?

I not understand this no sentence :)

 There's simply no way that I would mount up 1400
 devfs. It is a backward step.

What reasons, other than cosmetic, do you have for not wanting to do
this?

Kris


pgpGqiZWyLboe.pgp
Description: PGP signature


mknod, devfs and FreeBSD

2007-01-26 Thread Freminlins

Hello,

I have a web server still running FreeBSD 4.7 which I want to update to
FreeBSD 6.2. There are quite a few sites on this machine, and each of them
has a chroot containing their own /dev. In their /dev are things like null,
zero, random and so on.

I don't really want to set up or mount numerous devfs file systems. I tried
creating the the relevent files using mknod but they don't work. What is the
best way to proceed?

Thanks,
Frem.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mknod, devfs and FreeBSD

2007-01-26 Thread Kris Kennaway
On Fri, Jan 26, 2007 at 04:40:24PM +, Freminlins wrote:
 Hello,
 
 I have a web server still running FreeBSD 4.7 which I want to update to
 FreeBSD 6.2. There are quite a few sites on this machine, and each of them
 has a chroot containing their own /dev. In their /dev are things like null,
 zero, random and so on.
 
 I don't really want to set up or mount numerous devfs file systems. I tried
 creating the the relevent files using mknod but they don't work. What is the
 best way to proceed?

Set up and mount numerous devfs file systems ;)

Really it's not hard, you just specify the devices you want with a
simple devfs(8) ruleset.

Kris


pgpkI4ApWH4oZ.pgp
Description: PGP signature


Re: mknod, devfs and FreeBSD

2007-01-26 Thread Freminlins

Kris,

On 26/01/07, Kris Kennaway [EMAIL PROTECTED] wrote:


Set up and mount numerous devfs file systems ;)



That is exactly what I am trying to avoid. One of the servers has 1400 sites
on it, and I really don't want 1400 devfs mounts. If the only way to do this
now is by having so many devfs mounts I am better off not upgrading, and it
is very arugable that FreeBSD has lost some functionality by forcing such a
scheme.

Really it's not hard, you just specify the devices you want with a

simple devfs(8) ruleset.



It's not how hard it is, it's how untidy it is.

Kris


Frem.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mknod, devfs and FreeBSD

2007-01-26 Thread Kris Kennaway
On Fri, Jan 26, 2007 at 11:05:37PM +, Freminlins wrote:
 Kris,
 
 On 26/01/07, Kris Kennaway [EMAIL PROTECTED] wrote:
 
 Set up and mount numerous devfs file systems ;)
 
 
 That is exactly what I am trying to avoid. One of the servers has 1400 sites
 on it, and I really don't want 1400 devfs mounts. If the only way to do this
 now is by having so many devfs mounts I am better off not upgrading, and it
 is very arugable that FreeBSD has lost some functionality by forcing such a
 scheme.
 
 Really it's not hard, you just specify the devices you want with a
 simple devfs(8) ruleset.
 
 
 It's not how hard it is, it's how untidy it is.

Sorry, it's the only way.

Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]