From nobody@FreeBSD.org  Tue Jun  5 13:28:13 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id D23B937B401
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  5 Jun 2001 13:28:13 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.3/8.11.3) id f55KSDd33923;
	Tue, 5 Jun 2001 13:28:13 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200106052028.f55KSDd33923@freefall.freebsd.org>
Date: Tue, 5 Jun 2001 13:28:13 -0700 (PDT)
From: kevind@ikadega.com
To: freebsd-gnats-submit@FreeBSD.org
Subject: remounting local filesystem causes nfsd to return EPERM
X-Send-Pr-Version: www-1.0

>Number:         27894
>Category:       kern
>Synopsis:       remounting local filesystem causes nfsd to return EPERM
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 05 13:30:04 PDT 2001
>Closed-Date:    Sun Dec 2 16:21:20 PST 2001
>Last-Modified:  Sun Dec 02 16:26:49 PST 2001
>Originator:     Kevin Day
>Release:        4.3-RELEASE
>Organization:
Ikadega
>Environment:
>Description:
When remounting a filesystem with different options on an NFS server, for a brief window, write commands from an NFS client to the NFS server get EPERM.

>How-To-Repeat:
An NFS client was using dd to write data to a file on an NFS server. It was going pretty slowly, so we decided to remount the filesystem on the NFS server with the "async,noatime" options.

I hit ^T before we remounted the file system:

# dd if=/dev/ad0 of=develdisk bs=8192
load: 0.25  cmd: dd 9578 [nfsrcvlk] 1.11u 83.09s 1% 124k
386446+0 records in
386445+0 records out
3165757440 bytes transferred in 2873.737043 secs (1101617 bytes/sec)

It looked like it was going fine.

On the server, I typed:

# mount -u -o async,noatime,rw /bay0

Instantly, dd on the client reported:

dd: develdisk: Permission denied
388710+0 records in
388709+0 records out
3184304128 bytes transferred in 2890.083892 secs (1101803 bytes/sec)
#


>Fix:
No fix, but easy to reproduce.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: iedowse 
State-Changed-When: Sun Dec 2 16:21:20 PST 2001 
State-Changed-Why:  

Duplicate of misc/3980; this is a very old problem that is quite 
hard to fix, since it involves making significant changes to mountd 
and changing the kernel interface that is used to pass in export 
lists. I've thought about it a bit, but I have never got around to 
implementing a solution. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27894 
>Unformatted:
