* [PATCH] KERN_INFO for devfs
@ 2002-01-28 11:50 Denis Vlasenko
2002-01-28 16:44 ` Richard Gooch
0 siblings, 1 reply; 19+ messages in thread
From: Denis Vlasenko @ 2002-01-28 11:50 UTC (permalink / raw)
To: Richard Gooch; +Cc: linux-kernel
Primary purpose of this patch is to make KERN_WARNING and
KERN_INFO log levels closer to their original meaning.
Today they are quite far from what was intended.
Just look what kernel writes at the WARNING level
each time you boot your box!
Diff for devfs.
--
vda
diff --recursive -u linux-2.4.13-orig/fs/devfs/base.c linux-2.4.13-new/fs/devfs/base.c
--- linux-2.4.13-orig/fs/devfs/base.c Thu Oct 11 04:23:24 2001
+++ linux-2.4.13-new/fs/devfs/base.c Thu Nov 8 23:42:11 2001
@@ -3289,13 +3289,13 @@
{
int err;
- printk ("%s: v%s Richard Gooch (rgooch@atnf.csiro.au)\n",
- DEVFS_NAME, DEVFS_VERSION);
+ printk (KERN_INFO DEVFS_NAME ": v" DEVFS_VERSION
+ " Richard Gooch (rgooch@atnf.csiro.au)\n");
#ifdef CONFIG_DEVFS_DEBUG
devfs_debug = devfs_debug_init;
- printk ("%s: devfs_debug: 0x%0x\n", DEVFS_NAME, devfs_debug);
+ printk (KERN_INFO DEVFS_NAME ": devfs_debug: 0x%0x\n", devfs_debug);
#endif
- printk ("%s: boot_options: 0x%0x\n", DEVFS_NAME, boot_options);
+ printk (KERN_INFO DEVFS_NAME ": boot_options: 0x%0x\n", boot_options);
err = register_filesystem (&devfs_fs_type);
if (!err)
{
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] KERN_INFO for devfs
2002-01-28 11:50 [PATCH] KERN_INFO for devfs Denis Vlasenko
@ 2002-01-28 16:44 ` Richard Gooch
2002-01-29 1:20 ` Denis Vlasenko
0 siblings, 1 reply; 19+ messages in thread
From: Richard Gooch @ 2002-01-28 16:44 UTC (permalink / raw)
To: vda; +Cc: linux-kernel
Denis Vlasenko writes:
> Primary purpose of this patch is to make KERN_WARNING and
> KERN_INFO log levels closer to their original meaning.
> Today they are quite far from what was intended.
> Just look what kernel writes at the WARNING level
> each time you boot your box!
>
> Diff for devfs.
> --
> vda
>
> diff --recursive -u linux-2.4.13-orig/fs/devfs/base.c linux-2.4.13-new/fs/devfs/base.c
This patch won't even remotely apply to 2.4.18-pre7. Please don't
submit patches which were generated against old kernels unless you've
verified that they apply to the latest kernel.
Furthermore, if you look at 2.4.18-pre7, you'll notice that devfs has
changed the way most of it's messages are generated, and uses the
KERN_ values quite a bit.
Regards,
Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] KERN_INFO for devfs
2002-01-28 16:44 ` Richard Gooch
@ 2002-01-29 1:20 ` Denis Vlasenko
2002-01-29 16:49 ` Horst von Brand
0 siblings, 1 reply; 19+ messages in thread
From: Denis Vlasenko @ 2002-01-29 1:20 UTC (permalink / raw)
To: linux-kernel
> > diff --recursive -u linux-2.4.13-orig/fs/devfs/base.c
> > linux-2.4.13-new/fs/devfs/base.c
>
> This patch won't even remotely apply to 2.4.18-pre7. Please don't
> submit patches which were generated against old kernels unless you've
> verified that they apply to the latest kernel.
Didn't try but I'm sure you're right :-)
Diff against 2.4.18-pre6 will be attached as soon as diff will finish
(it's over NFS).
I changed "none" to "devfs" in do_mount("none", "/dev", "devfs", 0, ""):
"none is busy" is misleading at umount time :-)
Aha, it's ready!
--
vda
diff -u --recursive linux-2.4.18-pre6mhv_ll/fs/devfs/base.c
linux-2.4.18-pre6mhv_ll.devfs/fs/devfs/base.c
--- linux-2.4.18-pre6mhv_ll/fs/devfs/base.c Fri Jan 25 15:49:53 2002
+++ linux-2.4.18-pre6mhv_ll.devfs/fs/devfs/base.c Mon Jan 28 23:05:44
2002
@@ -3464,17 +3464,16 @@
{
int err;
- printk ("%s: v%s Richard Gooch (rgooch@atnf.csiro.au)\n",
- DEVFS_NAME, DEVFS_VERSION);
+ printk (KERN_INFO DEVFS_NAME ": v" DEVFS_VERSION " Richard Gooch
(rgooch@atnf.csiro.au)\n");
devfsd_buf_cache = kmem_cache_create ("devfsd_event",
sizeof (struct devfsd_buf_entry),
0, 0, NULL, NULL);
if (!devfsd_buf_cache) OOPS ("(): unable to allocate event slab\n");
#ifdef CONFIG_DEVFS_DEBUG
devfs_debug = devfs_debug_init;
- printk ("%s: devfs_debug: 0x%0x\n", DEVFS_NAME, devfs_debug);
+ printk (KERN_INFO DEVFS_NAME ": devfs_debug: 0x%0x\n", devfs_debug);
#endif
- printk ("%s: boot_options: 0x%0x\n", DEVFS_NAME, boot_options);
+ printk (KERN_INFO DEVFS_NAME ": boot_options: 0x%0x\n", boot_options);
err = register_filesystem (&devfs_fs_type);
if (!err)
{
@@ -3490,8 +3489,8 @@
int err;
if ( !(boot_options & OPTION_MOUNT) ) return;
- err = do_mount ("none", "/dev", "devfs", 0, "");
- if (err == 0) printk ("Mounted devfs on /dev\n");
+ err = do_mount ("devfs", "/dev", "devfs", 0, "");
+ if (err == 0) printk (KERN_INFO "Mounted devfs on /dev\n");
else printk ("Warning: unable to mount devfs, err: %d\n", err);
} /* End Function mount_devfs_fs */
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] KERN_INFO for devfs
2002-01-29 1:20 ` Denis Vlasenko
@ 2002-01-29 16:49 ` Horst von Brand
2002-01-30 13:03 ` Denis Vlasenko
0 siblings, 1 reply; 19+ messages in thread
From: Horst von Brand @ 2002-01-29 16:49 UTC (permalink / raw)
To: vda; +Cc: linux-kernel
Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua> said:
[...]
> diff -u --recursive linux-2.4.18-pre6mhv_ll/fs/devfs/base.c
> linux-2.4.18-pre6mhv_ll.devfs/fs/devfs/base.c
> --- linux-2.4.18-pre6mhv_ll/fs/devfs/base.c Fri Jan 25 15:49:53 2002
> +++ linux-2.4.18-pre6mhv_ll.devfs/fs/devfs/base.c Mon Jan 28 23:05:44
> 2002
> @@ -3490,8 +3489,8 @@
> int err;
>
> if ( !(boot_options & OPTION_MOUNT) ) return;
> - err = do_mount ("none", "/dev", "devfs", 0, "");
> - if (err == 0) printk ("Mounted devfs on /dev\n");
> + err = do_mount ("devfs", "/dev", "devfs", 0, "");
> + if (err == 0) printk (KERN_INFO "Mounted devfs on /dev\n");
> else printk ("Warning: unable to mount devfs, err: %d\n", err);
^^^^^
Missed this one
> } /* End Function mount_devfs_fs */
--
Horst von Brand http://counter.li.org # 22616
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] KERN_INFO for devfs
2002-01-30 13:03 ` Denis Vlasenko
@ 2002-01-30 11:09 ` David Weinehall
2002-01-30 16:32 ` Denis Vlasenko
0 siblings, 1 reply; 19+ messages in thread
From: David Weinehall @ 2002-01-30 11:09 UTC (permalink / raw)
To: Denis Vlasenko; +Cc: Horst von Brand, linux-kernel
On Wed, Jan 30, 2002 at 11:03:05AM -0200, Denis Vlasenko wrote:
> On 29 January 2002 14:49, Horst von Brand wrote:
> > > diff -u --recursive linux-2.4.18-pre6mhv_ll/fs/devfs/base.c
> > > linux-2.4.18-pre6mhv_ll.devfs/fs/devfs/base.c
> > > --- linux-2.4.18-pre6mhv_ll/fs/devfs/base.c Fri Jan 25 15:49:53 2002
> > > +++ linux-2.4.18-pre6mhv_ll.devfs/fs/devfs/base.c Mon Jan 28
> > > 23:05:44 2002
> > > @@ -3490,8 +3489,8 @@
> > > int err;
> > >
> > > if ( !(boot_options & OPTION_MOUNT) ) return;
> > > - err = do_mount ("none", "/dev", "devfs", 0, "");
> > > - if (err == 0) printk ("Mounted devfs on /dev\n");
> > > + err = do_mount ("devfs", "/dev", "devfs", 0, "");
> > > + if (err == 0) printk (KERN_INFO "Mounted devfs on /dev\n");
> > > else printk ("Warning: unable to mount devfs, err: %d\n", err);
> >
> > ^^^^^
> > Missed this one
>
> Hmm. KERN_WARNING can be added there, but it is the default level anyway.
Yes, but that may change (in theory, at least.) Consistency is a virtue.
/David Weinehall
_ _
// David Weinehall <tao@acc.umu.se> /> Northern lights wander \\
// Maintainer of the v2.0 kernel // Dance across the winter sky //
\> http://www.acc.umu.se/~tao/ </ Full colour fire </
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] KERN_INFO for devfs
2002-01-30 16:32 ` Denis Vlasenko
@ 2002-01-30 12:34 ` Zwane Mwaikambo
2002-01-30 15:16 ` Alan Cox
2002-01-30 18:04 ` Richard Gooch
2 siblings, 0 replies; 19+ messages in thread
From: Zwane Mwaikambo @ 2002-01-30 12:34 UTC (permalink / raw)
To: Denis Vlasenko; +Cc: David Weinehall, Horst von Brand, linux-kernel
On Wed, 30 Jan 2002, Denis Vlasenko wrote:
> I'll do this cleanup if my KERN_INFO patches will be accepted, at least some
> of them. So far only Richard Gooch replied...
Heh, thats a lot to ask ;)
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] KERN_INFO for devfs
2002-01-29 16:49 ` Horst von Brand
@ 2002-01-30 13:03 ` Denis Vlasenko
2002-01-30 11:09 ` David Weinehall
0 siblings, 1 reply; 19+ messages in thread
From: Denis Vlasenko @ 2002-01-30 13:03 UTC (permalink / raw)
To: Horst von Brand; +Cc: linux-kernel
On 29 January 2002 14:49, Horst von Brand wrote:
> > diff -u --recursive linux-2.4.18-pre6mhv_ll/fs/devfs/base.c
> > linux-2.4.18-pre6mhv_ll.devfs/fs/devfs/base.c
> > --- linux-2.4.18-pre6mhv_ll/fs/devfs/base.c Fri Jan 25 15:49:53 2002
> > +++ linux-2.4.18-pre6mhv_ll.devfs/fs/devfs/base.c Mon Jan 28
> > 23:05:44 2002
> > @@ -3490,8 +3489,8 @@
> > int err;
> >
> > if ( !(boot_options & OPTION_MOUNT) ) return;
> > - err = do_mount ("none", "/dev", "devfs", 0, "");
> > - if (err == 0) printk ("Mounted devfs on /dev\n");
> > + err = do_mount ("devfs", "/dev", "devfs", 0, "");
> > + if (err == 0) printk (KERN_INFO "Mounted devfs on /dev\n");
> > else printk ("Warning: unable to mount devfs, err: %d\n", err);
>
> ^^^^^
> Missed this one
Hmm. KERN_WARNING can be added there, but it is the default level anyway.
--
vda
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] KERN_INFO for devfs
2002-01-30 16:32 ` Denis Vlasenko
2002-01-30 12:34 ` Zwane Mwaikambo
@ 2002-01-30 15:16 ` Alan Cox
2002-01-30 18:04 ` Richard Gooch
2 siblings, 0 replies; 19+ messages in thread
From: Alan Cox @ 2002-01-30 15:16 UTC (permalink / raw)
To: vda; +Cc: David Weinehall, Horst von Brand, linux-kernel
> > Yes, but that may change (in theory, at least.) Consistency is a virtue.
>
> I'll do this cleanup if my KERN_INFO patches will be accepted, at least some
> of them. So far only Richard Gooch replied...
I ran some of them into 7ac1 but got rejects so I've dumped them out for
now. They mostly look completely sensible
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] KERN_INFO for devfs
2002-01-30 11:09 ` David Weinehall
@ 2002-01-30 16:32 ` Denis Vlasenko
2002-01-30 12:34 ` Zwane Mwaikambo
` (2 more replies)
0 siblings, 3 replies; 19+ messages in thread
From: Denis Vlasenko @ 2002-01-30 16:32 UTC (permalink / raw)
To: David Weinehall; +Cc: Horst von Brand, linux-kernel
On 30 January 2002 09:09, David Weinehall wrote:
> > > > else printk ("Warning: unable to mount devfs, err: %d\n", err);
> > >
> > > ^^^^^
> > > Missed this one
> >
> > Hmm. KERN_WARNING can be added there, but it is the default level anyway.
>
> Yes, but that may change (in theory, at least.) Consistency is a virtue.
I'll do this cleanup if my KERN_INFO patches will be accepted, at least some
of them. So far only Richard Gooch replied...
--
vda
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] KERN_INFO for devfs
2002-01-30 16:32 ` Denis Vlasenko
2002-01-30 12:34 ` Zwane Mwaikambo
2002-01-30 15:16 ` Alan Cox
@ 2002-01-30 18:04 ` Richard Gooch
2002-01-30 18:20 ` Richard Gooch
` (3 more replies)
2 siblings, 4 replies; 19+ messages in thread
From: Richard Gooch @ 2002-01-30 18:04 UTC (permalink / raw)
To: Alan Cox; +Cc: vda, David Weinehall, Horst von Brand, linux-kernel
Alan Cox writes:
> > > Yes, but that may change (in theory, at least.) Consistency is a virtue.
> >
> > I'll do this cleanup if my KERN_INFO patches will be accepted, at least some
> > of them. So far only Richard Gooch replied...
>
> I ran some of them into 7ac1 but got rejects so I've dumped them out
> for now. They mostly look completely sensible
I'd prefer if tree maintainers (that means you, Alan:-) don't apply
devfs patches that didn't come from me. I've already posted a patch
which cleans up *all* the remaining printk()'s. In fact, it's a pair
of patches, one for 2.4.x and one for 2.5.x. That was yesterday. Today
I'm still seeing this thread being beaten to death.
Besides, this is hardly an urgent fix, so there's no great rush to
apply a random patch from someone else, even if I did sit on it for a
week or two. Applying random patches will just end up generating more
merge work for me down the track.
Regards,
Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] KERN_INFO for devfs
2002-01-30 18:04 ` Richard Gooch
@ 2002-01-30 18:20 ` Richard Gooch
2002-01-30 18:32 ` Alan Cox
` (2 subsequent siblings)
3 siblings, 0 replies; 19+ messages in thread
From: Richard Gooch @ 2002-01-30 18:20 UTC (permalink / raw)
To: Alan Cox; +Cc: vda, David Weinehall, Horst von Brand, linux-kernel
Alan Cox writes:
> > I'd prefer if tree maintainers (that means you, Alan:-) don't apply
> > devfs patches that didn't come from me. I've already posted a patch
> > which cleans up *all* the remaining printk()'s. In fact, it's a pair
> > of patches, one for 2.4.x and one for 2.5.x. That was yesterday. Today
> > I'm still seeing this thread being beaten to death.
>
> I'll apply stuff to my tree that looks sane and see what happens, if I know
> there is an active maintainer I'll also replace it with newer stuff from
> the mainstream and I won't submit it on to Marcelo.
>
> So no worries, I'm not going to screw your patchsets to Marcelo up
OK.
Regards,
Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] KERN_INFO for devfs
2002-01-30 18:04 ` Richard Gooch
2002-01-30 18:20 ` Richard Gooch
@ 2002-01-30 18:32 ` Alan Cox
2002-01-30 19:37 ` Jeff Garzik
2002-01-31 20:44 ` Horst von Brand
3 siblings, 0 replies; 19+ messages in thread
From: Alan Cox @ 2002-01-30 18:32 UTC (permalink / raw)
To: Richard Gooch
Cc: Alan Cox, vda, David Weinehall, Horst von Brand, linux-kernel
> I'd prefer if tree maintainers (that means you, Alan:-) don't apply
> devfs patches that didn't come from me. I've already posted a patch
> which cleans up *all* the remaining printk()'s. In fact, it's a pair
> of patches, one for 2.4.x and one for 2.5.x. That was yesterday. Today
> I'm still seeing this thread being beaten to death.
I'll apply stuff to my tree that looks sane and see what happens, if I know
there is an active maintainer I'll also replace it with newer stuff from
the mainstream and I won't submit it on to Marcelo.
So no worries, I'm not going to screw your patchsets to Marcelo up
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] KERN_INFO for devfs
2002-01-30 18:04 ` Richard Gooch
2002-01-30 18:20 ` Richard Gooch
2002-01-30 18:32 ` Alan Cox
@ 2002-01-30 19:37 ` Jeff Garzik
2002-01-31 20:44 ` Horst von Brand
3 siblings, 0 replies; 19+ messages in thread
From: Jeff Garzik @ 2002-01-30 19:37 UTC (permalink / raw)
To: Richard Gooch
Cc: Alan Cox, vda, David Weinehall, Horst von Brand, linux-kernel
On Wed, Jan 30, 2002 at 11:04:49AM -0700, Richard Gooch wrote:
> I'd prefer if tree maintainers (that means you, Alan:-) don't apply
> devfs patches that didn't come from me. I've already posted a patch
> which cleans up *all* the remaining printk()'s. In fact, it's a pair
> of patches, one for 2.4.x and one for 2.5.x. That was yesterday. Today
> I'm still seeing this thread being beaten to death.
First, before I get to my point, I want to say that I fully understand
your argument, and I also bitch when people patch the files I maintain.
But.
That is courtesy, not a right or need. The -beauty- of open source is
that anyone can hack on my files, or devfs, and if the patch makes
sense, it will get applied, regardless of whether I am a crotchety old
a-hole or not. (I am :))
Jeff
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] KERN_INFO for devfs
2002-01-30 18:04 ` Richard Gooch
` (2 preceding siblings ...)
2002-01-30 19:37 ` Jeff Garzik
@ 2002-01-31 20:44 ` Horst von Brand
3 siblings, 0 replies; 19+ messages in thread
From: Horst von Brand @ 2002-01-31 20:44 UTC (permalink / raw)
To: Richard Gooch; +Cc: linux-kernel
Richard Gooch <rgooch@ras.ucalgary.ca> said:
[...]
> I'd prefer if tree maintainers (that means you, Alan:-) don't apply
> devfs patches that didn't come from me. I've already posted a patch
> which cleans up *all* the remaining printk()'s. In fact, it's a pair
> of patches, one for 2.4.x and one for 2.5.x. That was yesterday. Today
> I'm still seeing this thread being beaten to death.
There goes the "just small-stuff maintainer"...
--
Horst von Brand http://counter.li.org # 22616
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] KERN_INFO for devfs
2002-01-29 10:39 ` Borsenkow Andrej
2002-01-29 15:40 ` Denis Vlasenko
@ 2002-01-29 17:48 ` Richard Gooch
1 sibling, 0 replies; 19+ messages in thread
From: Richard Gooch @ 2002-01-29 17:48 UTC (permalink / raw)
To: vda; +Cc: Borsenkow Andrej, linux-kernel
Denis Vlasenko writes:
> > > Why do you think they _have to_ have "none"? Is it POSIXized or
> > > otherwise standardized? Where can I RTFM?
> >
> > I do not think they have to. They just are :-)
> >
> > fs/namespace.c:show_vfsmnt()
> >
> > ...
> > mangle(m, mnt->mnt_devname ? mnt->mnt_devname : "none");
> >
> >
> > I find this convention quite useful. It allows any program to easily
> > skip virtual filesystems. Using something like /dev or devfs in this
> > case does not add any bit of useful information but possibly adds to
> > confusion.
>
> Maybe you're right. It's up to maintainer to decide.
> Richard, do you need updated patch without "none" -> "devfs"?
Don't bother. I've gone through the code and done it myself, making
some other minor changes as I go along.
Regards,
Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] KERN_INFO for devfs
2002-01-29 10:39 ` Borsenkow Andrej
@ 2002-01-29 15:40 ` Denis Vlasenko
2002-01-29 17:48 ` Richard Gooch
1 sibling, 0 replies; 19+ messages in thread
From: Denis Vlasenko @ 2002-01-29 15:40 UTC (permalink / raw)
To: Borsenkow Andrej, Richard Gooch; +Cc: linux-kernel
> > Why do you think they _have to_ have "none"? Is it POSIXized or
> > otherwise standardized? Where can I RTFM?
>
> I do not think they have to. They just are :-)
>
> fs/namespace.c:show_vfsmnt()
>
> ...
> mangle(m, mnt->mnt_devname ? mnt->mnt_devname : "none");
>
>
> I find this convention quite useful. It allows any program to easily
> skip virtual filesystems. Using something like /dev or devfs in this
> case does not add any bit of useful information but possibly adds to
> confusion.
Maybe you're right. It's up to maintainer to decide.
Richard, do you need updated patch without "none" -> "devfs"?
--
vda
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] KERN_INFO for devfs
2002-01-29 7:27 Borsenkow Andrej
@ 2002-01-29 13:40 ` Denis Vlasenko
2002-01-29 10:39 ` Borsenkow Andrej
0 siblings, 1 reply; 19+ messages in thread
From: Denis Vlasenko @ 2002-01-29 13:40 UTC (permalink / raw)
To: Borsenkow Andrej; +Cc: linux-kernel
On 29 January 2002 05:27, Borsenkow Andrej wrote:
> > I changed "none" to "devfs" in do_mount("none", "/dev", "devfs", 0,
>
> ""):
> > "none is busy" is misleading at umount time :-)
>
> File systems that do not have real devices behind them have "none" as
> device. Please do not change it - it was correct. Having it later in
> /proc/mounts may confuse some user-level tools. If you want to fix it -
> fix umount to report something more sensible if device == none.
Why do you think they _have to_ have "none"? Is it POSIXized or otherwise
standardized? Where can I RTFM?
--
vda
^ permalink raw reply [flat|nested] 19+ messages in thread
* RE: [PATCH] KERN_INFO for devfs
2002-01-29 13:40 ` Denis Vlasenko
@ 2002-01-29 10:39 ` Borsenkow Andrej
2002-01-29 15:40 ` Denis Vlasenko
2002-01-29 17:48 ` Richard Gooch
0 siblings, 2 replies; 19+ messages in thread
From: Borsenkow Andrej @ 2002-01-29 10:39 UTC (permalink / raw)
To: vda; +Cc: linux-kernel
> On 29 January 2002 05:27, Borsenkow Andrej wrote:
> > > I changed "none" to "devfs" in do_mount("none", "/dev", "devfs",
0,
> >
> > ""):
> > > "none is busy" is misleading at umount time :-)
> >
> > File systems that do not have real devices behind them have "none"
as
> > device. Please do not change it - it was correct. Having it later in
> > /proc/mounts may confuse some user-level tools. If you want to fix
it -
> > fix umount to report something more sensible if device == none.
>
> Why do you think they _have to_ have "none"? Is it POSIXized or
otherwise
> standardized? Where can I RTFM?
I do not think they have to. They just are :-)
fs/namespace.c:show_vfsmnt()
...
mangle(m, mnt->mnt_devname ? mnt->mnt_devname : "none");
I find this convention quite useful. It allows any program to easily
skip virtual filesystems. Using something like /dev or devfs in this
case does not add any bit of useful information but possibly adds to
confusion.
-andrej
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] KERN_INFO for devfs
@ 2002-01-29 7:27 Borsenkow Andrej
2002-01-29 13:40 ` Denis Vlasenko
0 siblings, 1 reply; 19+ messages in thread
From: Borsenkow Andrej @ 2002-01-29 7:27 UTC (permalink / raw)
To: vda; +Cc: linux-kernel
> I changed "none" to "devfs" in do_mount("none", "/dev", "devfs", 0,
""):
> "none is busy" is misleading at umount time :-)
File systems that do not have real devices behind them have "none" as
device. Please do not change it - it was correct. Having it later in
/proc/mounts may confuse some user-level tools. If you want to fix it -
fix umount to report something more sensible if device == none.
-andrej
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2002-02-01 7:41 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-28 11:50 [PATCH] KERN_INFO for devfs Denis Vlasenko
2002-01-28 16:44 ` Richard Gooch
2002-01-29 1:20 ` Denis Vlasenko
2002-01-29 16:49 ` Horst von Brand
2002-01-30 13:03 ` Denis Vlasenko
2002-01-30 11:09 ` David Weinehall
2002-01-30 16:32 ` Denis Vlasenko
2002-01-30 12:34 ` Zwane Mwaikambo
2002-01-30 15:16 ` Alan Cox
2002-01-30 18:04 ` Richard Gooch
2002-01-30 18:20 ` Richard Gooch
2002-01-30 18:32 ` Alan Cox
2002-01-30 19:37 ` Jeff Garzik
2002-01-31 20:44 ` Horst von Brand
2002-01-29 7:27 Borsenkow Andrej
2002-01-29 13:40 ` Denis Vlasenko
2002-01-29 10:39 ` Borsenkow Andrej
2002-01-29 15:40 ` Denis Vlasenko
2002-01-29 17:48 ` Richard Gooch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®