[patch] to fs/nfsd/vfs.c (corrects behaviour across mount points)

Cyrille Chepelov (chepelov@rip.ens-cachan.fr)
Fri, 12 Jun 1998 17:08:35 +0200 (MET DST)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

---559023410-851401618-897664115=:14784
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi,

for those who might have read my previous message on this topic, please
ignore it, things aren't that weird, after going a little deeper in the
kernel.

The attached patch fixes the behaviour when listing a directory which is
under a mount point. Previously, the knfsd returned an access error,
which is wrong, now it returns the directory *under* the mount point.
procfs and nfs are still offlimit (devptsfs and devfs should also be added
in the list of "off-limits" fs types, shouldn't they ?), so basically,
when you do do :
mount server:/ /mnt
and then :
ls /mnt
you get the list of the server's root directory (without errors, unlike
before my patch).
Now, if you do :
ls /mnt/proc (or ls /mnt/mnt/cdrom, for instance),
you get an empty directory (or whatever was in the server's /proc before
you mounted the procfs into /proc)

TIA !

-- Cyrille

------------------------------
Zog Zog

---559023410-851401618-897664115=:14784
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="nfsd_vfs.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GSO.3.96.980612170835.14784B@asterix>
Content-Description:

LS0tIGZzL25mc2QvdmZzLmMub2xkCUZyaSBKdW4gMTIgMTU6MTI6NDUgMTk5
OA0KKysrIGZzL25mc2QvdmZzLmMJRnJpIEp1biAxMiAxNjo0MDo0MCAxOTk4
DQpAQCAtMTM3LDEwICsxMzcsMTQgQEANCiAJICogTWFrZSBzdXJlIHdlIGhh
dmVuJ3QgY3Jvc3NlZCBhIG1vdW50IHBvaW50IC4uLg0KIAkgKi8NCiAJaWYg
KGRjaGlsZC0+ZF9zYiAhPSBkcGFyZW50LT5kX3NiKSB7DQorCQlpZiAoZGNo
aWxkLT5kX2NvdmVycyAhPSBkY2hpbGQpIHsNCisJCQlkY2hpbGQgPSBkY2hp
bGQtPmRfY292ZXJzOw0KKwkJfSBlbHNlIHsNCiAjaWZkZWYgTkZTRF9QQVJB
Tk9JQQ0KIHByaW50aygibmZzZF9sb29rdXA6ICVzLyVzIGNyb3NzZWQgbW91
bnQgcG9pbnQhXG4iLCBkcGFyZW50LT5kX25hbWUubmFtZSwgbmFtZSk7DQog
I2VuZGlmDQotCQlnb3RvIG91dF9kcHV0Ow0KKyAgICAgICAgICAgICAgICAg
ICAgICAgIGdvdG8gb3V0X2RwdXQ7DQorCQl9DQogCX0NCiANCiAJLyoNCg==
---559023410-851401618-897664115=:14784--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu