mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: linux-kernel@vger.kernel.org
Cc: trond.myklebust@fys.uio.no
Subject: NFS client bug
Date: Sun, 2 Sep 2001 23:20:09 +0100 (BST)	[thread overview]
Message-ID: <E15dfb7-0000Vd-00@the-village.bc.nu> (raw)

During some discussion with Al Viro about the right way to do supermount he
complained that it probably wanted doing in userspace. Anyway I was actually
annoyed enough with the magicdev program to try and do this.

I have it working for a subset of working (only one device, hardcoded path)
except for what seems to be an NFS client bug.

For obvious reasons I mount with very little caching in the client. 
[mount -oport=497,mountprog=200005,noac,nolock,soft
	127.0.0.1:/var/cache/volumagic/cdrom /mnt/cdrom]

Everything is fine until I do 

	cd /mnt/cdrom/somedir

[remove CD, insert different CD]

	ls

	[stale NFS file handle - correct so far]

[remove CD, insert original CD]

	ls

	[stale NFS file handle - cached on client - wrong]

It then gets more bizarre

	cd /mnt/cdrom/somedir

	[Looks ok a new filehandle, works ok]
	ls
	[Immediate stale NFS file handle from client - no traffic]

It seems this 'dead' handle remains stuck in the system until umount.

Alan

             reply	other threads:[~2001-09-02 22:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-02 22:20 Alan Cox [this message]
2001-09-02 23:17 ` Trond Myklebust

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E15dfb7-0000Vd-00@the-village.bc.nu \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trond.myklebust@fys.uio.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®