2003-02-28 22:19:36

by Adam J. Richter

[permalink] [raw]
Subject: Patch: 2.5.62.4 small devfs

On Fri, 28 Feb 2003, Andrew Walrond wrote:
>[...] I want to give this another whirl, but your latest
>patch doesn't apply cleanly against 2.5.63+ (fs/devfs/base.c fails). Any
>chance of an update?

I have made a new version of my small devfs patch against
linux-2.5.62.bk4. This version fixes a bug where directory->i_sem was
held while devfs_helper ran, which caused deadlock on one system. I
am surprised I had not noticed this problem before. This version also
adds Documentation/filesystems/devfs/small-devfs, describing
differences between the old devfs implementation and this one. You can
retrieve the patch from the following URL.

ftp://ftp.yggdrasil.com/pub/dist/device_control/devfs/smalldevfs-2.5.62.4-v11.patch

As before, the optional devfs_helper user level program can
be retrived from:

ftp://ftp.yggdrasil.com/pub/dist/device_control/devfs/devfs_helper-0.2.tar.gz


My "to do" list for small devfs is now as follows.

- Submit a patch to the -mm kernels, as Andrew has been
kind enough to distribute this change in his -mm kernels.
- Remove CONFIG_DEVFS_MOUNT?
- Explore eliminating by fs/devfs/fs.c by extending
dnotify and ramfs slightly.
- Probably request integration after linux-2.7.0.

Adam J. Richter __ ______________ 575 Oroville Road
[email protected] \ / Milpitas, California 95035
+1 408 309-6081 | g g d r a s i l United States of America
"Free Software For The Rest Of Us."


2003-03-03 16:17:32

by Andrew Walrond

[permalink] [raw]
Subject: Re: Patch: 2.5.62.4 small devfs

Hi Adam

Could you suggest a simple bit of sh script that will tell me if I have
a devfs or small devfs kernel, (so my init scripts can decide whether or
not to load devfsd?)

Andrew Walrond


2003-03-03 16:36:05

by Andrew Walrond

[permalink] [raw]
Subject: Re: Patch: 2.5.62.4 small devfs

Hmmm

I'm already using the existance of .devfsd to see if devfs was mounted
by the kernel at boot. This suggests I need a new test for small devfs?

Andrew

[email protected] wrote:
> if [ -f /dev/.devfsd ]; then
> you know you have old devfs
> fi
>
> Jordan (I am fairly certain that it is /dev/.devfsd, you can always do ls -
> al /dev/.* to find the real name)
>
>>Hi Adam
>>
>>Could you suggest a simple bit of sh script that will tell me if I have
>>a devfs or small devfs kernel, (so my init scripts can decide whether or
>>not to load devfsd?)
>>
>>Andrew Walrond
>>
>>
>>-
>>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>>the body of a message to [email protected]
>>More majordomo info at http://vger.kernel.org/majordomo-info.html
>>Please read the FAQ at http://www.tux.org/lkml/
>
>


2003-03-03 18:05:32

by Adam J. Richter

[permalink] [raw]
Subject: Re: Patch: 2.5.62.4 small devfs

>Could you suggest a simple bit of sh script that will tell me if I have
>a devfs or small devfs kernel, (so my init scripts can decide whether or
>not to load devfsd?)

I haven't tested this, but something like this might
work:

if [ -e /dev/.devfsd ] ; then
echo "Running old devfs"
devfsd
else
echo "Running no devfs or new devfs."
fi

Adam J. Richter __ ______________ 575 Oroville Road
[email protected] \ / Milpitas, California 95035
+1 408 309-6081 | g g d r a s i l United States of America
"Free Software For The Rest Of Us."