From: Chuck Lever <chuck.lever@oracle.com>
To: Neil Brown <neilb@suse.de>
Cc: nfs@lists.sourceforge.net
Subject: Re: [PATCH 06/12] text-based mount.nfs:
Date: Wed, 10 Oct 2007 22:49:41 -0400 [thread overview]
Message-ID: <470D8F45.8020202@oracle.com> (raw)
In-Reply-To: <18189.32027.462332.151295@notabene.brown>
[-- Attachment #1: Type: text/plain, Size: 2554 bytes --]
Neil Brown wrote:
>>> By the by, when testing what the current code does, I discovered that
>>> if
>>>
>>> mount server:/path /dir
>>>
>>> falls back to v2 because the default (v3) doesn't work, then
>>> umount /dir
>>>
>>> fails with
>>>
>>> umount.nfs: Server failed to unmount 'server:/path'
>>>
>>> which is a worry.
>> OK, it's not supposed to do that either, and I never saw that
>> behavior during testing. (Well, actually we did see it, but it was
>> only with NFSv4, and is supposed to be fixed by one of the patches in
>> the last set I sent you).
>>
>>> I think there are two problem here:
>>> 1/ we should fall back to v2 umount if v3 fails (well, the MOUNT
>>> versions are different, but you know what I mean).
>>> 2/ If the call to the server fails, we should still unmount the
>>> filesystem (call del_mtab .... not a good choice for the name
>>> of the function that does the actual unmount...)
>>> Thoughts?
>> First I would like to understand precisely why umount is failing. In
>> this case, mount.nfs should rewrite the mount options, then post them
>> in /etc/mtab so that umount can use the same service endpoint when
>> doing the unmount. The umount should then use the post-fallback
>> options, and succeed. Does "umount -v" provide any helpful
>> information?
>
> (remembering this is with the binary mount interface, not the new
> ASCII one) the updated mount options are *not* written to /etc/mtab.
> It just has
>
> eli:/var/tmp/samba /mnt nfs rw,addr=192.168.1.3 0 0
>
> nfsvers=2 has not been added.
> umount -v says:
> umount.nfs: trying 192.168.1.3 prog 100005 vers 3 prot UDP port 723
> umount.nfs: Server failed to unmount 'eli:/var/tmp/samba'
OK... the new information is that this is failing with the legacy mount.
That makes a little more sense.
>> Certainly it would be good to rename del_mtab() !
>>
>> I also agree that it would be an overall improvement if the RPC
>> umount request did not determine whether or not umount also tries to
>> detach the local file system. I don't see any good reason to link
>> the two.
>
> I've broken the link, so the unmount now succeeds. It would be good
> to get it to send the right request to the server though, either by
> recording the protocol in mtab, or using probe_mntport or similar.
Yeah, that's odd. It is supposed to be probing the server's mountd in
nfs_call_umount. The problem may be that it's only trying a single
mount RPC (for vers=3), and not doing any kind of version fallback.
[-- Attachment #2: chuck.lever.vcf --]
[-- Type: text/x-vcard, Size: 315 bytes --]
begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle Corporation;Corporate Architecture: Linux Projects Group
adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA
email;internet:chuck dot lever at nospam oracle dot com
title:Principal Member of Staff
tel;work:+1 248 614 5091
x-mozilla-html:FALSE
version:2.1
end:vcard
[-- Attachment #3: Type: text/plain, Size: 314 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
[-- Attachment #4: Type: text/plain, Size: 140 bytes --]
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next prev parent reply other threads:[~2007-10-11 2:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-08 15:54 [PATCH 06/12] text-based mount.nfs: Chuck Lever
2007-10-09 1:37 ` Neil Brown
2007-10-09 13:51 ` Chuck Lever
2007-10-11 1:32 ` Neil Brown
2007-10-11 2:49 ` Chuck Lever [this message]
2007-10-11 3:29 ` Neil Brown
2007-10-11 14:19 ` Chuck Lever
2007-10-11 23:04 ` Neil Brown
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=470D8F45.8020202@oracle.com \
--to=chuck.lever@oracle.com \
--cc=neilb@suse.de \
--cc=nfs@lists.sourceforge.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.