diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-08-21 21:44:52 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-08-21 21:44:52 +0000 |
commit | e2205f093bbdd251de8b2efe1f63925510fcbad5 (patch) | |
tree | 8b00643c79c9111a31f8519b734032ef9c39102b /examples | |
parent | 0e4cec0be89fcfd6f1e0a6ab3686e51a6ce7abe2 (diff) | |
download | busybox-w32-e2205f093bbdd251de8b2efe1f63925510fcbad5.tar.gz busybox-w32-e2205f093bbdd251de8b2efe1f63925510fcbad5.tar.bz2 busybox-w32-e2205f093bbdd251de8b2efe1f63925510fcbad5.zip |
Removed since this patch is now in the current 2.4.x kernel
tree.
-Erik
Diffstat (limited to 'examples')
-rw-r--r-- | examples/kernel-patches/2.4.x_mount_patch | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/examples/kernel-patches/2.4.x_mount_patch b/examples/kernel-patches/2.4.x_mount_patch deleted file mode 100644 index 91f5262c1..000000000 --- a/examples/kernel-patches/2.4.x_mount_patch +++ /dev/null | |||
@@ -1,66 +0,0 @@ | |||
1 | On Sat Jul 01, 2000 at 12:04:36PM -0400, Alexander Viro wrote: | ||
2 | > | ||
3 | > Try to trace the path from their roots to absolute root(s)... They simply | ||
4 | > should not be in the output - that's a debugging stuff and I have no | ||
5 | > problems with removing it from /proc/mounts. No heuristics needed - we | ||
6 | > can pass NULL as dev_name in kern_mount() and check for NULL ->mnt_devname | ||
7 | > in get_filesystem_info(). I'll do that as soon as threading patches will | ||
8 | > be over (hopefully RSN - they went to Linus). | ||
9 | > | ||
10 | |||
11 | Ok, cool. So something like then? I kept in the filter for FS_NOMOUNT | ||
12 | filesystems, as I assume those should never show up in /proc/mounts, and added | ||
13 | that filter to the /proc/filesystems listing as well. | ||
14 | |||
15 | -Erik | ||
16 | |||
17 | -- | ||
18 | Erik B. Andersen Web: http://www.xmission.com/~andersen/ | ||
19 | email: andersee@debian.org | ||
20 | --This message was written using 73% post-consumer electrons-- | ||
21 | |||
22 | |||
23 | --- fs/super.c.virgin Wed Jun 28 22:42:35 2000 | ||
24 | +++ fs/super.c Mon Jul 3 12:07:07 2000 | ||
25 | @@ -251,6 +251,10 @@ int get_filesystem_list(char * buf) | ||
26 | read_lock(&file_systems_lock); | ||
27 | tmp = file_systems; | ||
28 | while (tmp && len < PAGE_SIZE - 80) { | ||
29 | + /* Filter out any filesystems that are marked as FS_NOMOUNT. | ||
30 | + * User space doesn't need to know or care about them */ | ||
31 | + if (tmp->fs_flags & FS_NOMOUNT) | ||
32 | + continue; | ||
33 | len += sprintf(buf+len, "%s\t%s\n", | ||
34 | (tmp->fs_flags & FS_REQUIRES_DEV) ? "" : "nodev", | ||
35 | tmp->name); | ||
36 | @@ -443,6 +447,16 @@ int get_filesystem_info( char *buf ) | ||
37 | path = d_path(tmp->mnt_root, tmp, buffer, PAGE_SIZE); | ||
38 | if (!path) | ||
39 | continue; | ||
40 | + /* Filter out any filesystems that are marked as FS_NOMOUNT. | ||
41 | + * User space doesn't need to know or care about them */ | ||
42 | + if (tmp->mnt_sb->s_type->fs_flags & FS_NOMOUNT) | ||
43 | + continue; | ||
44 | + /* kern_mount() allows the kernel to mount internal-use-only | ||
45 | + * filesystems, and marks then with ->mnt_devname==NULL, so | ||
46 | + * filter out those here */ | ||
47 | + if (tmp->mnt_devname == NULL) | ||
48 | + continue; | ||
49 | + | ||
50 | len += sprintf( buf + len, "%s %s %s %s", | ||
51 | tmp->mnt_devname, path, | ||
52 | tmp->mnt_sb->s_type->name, | ||
53 | @@ -895,7 +909,7 @@ struct vfsmount *kern_mount(struct file_ | ||
54 | put_unnamed_dev(dev); | ||
55 | return ERR_PTR(-EINVAL); | ||
56 | } | ||
57 | - mnt = add_vfsmnt(sb, sb->s_root, sb->s_root, NULL, "none", type->name); | ||
58 | + mnt = add_vfsmnt(sb, sb->s_root, sb->s_root, NULL, NULL, type->name); | ||
59 | if (!mnt) { | ||
60 | kill_super(sb, 0); | ||
61 | return ERR_PTR(-ENOMEM); | ||
62 | |||
63 | - | ||
64 | To unsubscribe from this list: send the line "unsubscribe linux-kernel" in | ||
65 | the body of a message to majordomo@vger.rutgers.edu | ||
66 | Please read the FAQ at http://www.tux.org/lkml/ | ||