Bug 29652 - nfs line in /proc/mounts cannot be used to remount (proto=tcp)
Summary: nfs line in /proc/mounts cannot be used to remount (proto=tcp)
Status: RESOLVED OBSOLETE
Alias: None
Product: File System
Classification: Unclassified
Component: NFS (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Trond Myklebust
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-22 04:16 UTC by Mike Frysinger
Modified: 2012-08-16 11:05 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.37
Subsystem:
Regression: No
Bisected commit-id:


Attachments
kernel config (72.32 KB, text/plain)
2011-02-22 04:16 UTC, Mike Frysinger
Details

Description Mike Frysinger 2011-02-22 04:16:15 UTC
Created attachment 48642 [details]
kernel config

if i mount a local nfs tree and then take the status line from /proc/mounts to remount, the kernel returns back EINVAL on me.  if i just drop the "proto=tcp", it works fine.

# tail -n1 /proc/mounts
192.168.0.2:/tftpboot/ /mnt/tmp nfs4 rw,relatime,vers=4,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.0.2,minorversion=0,local_lock=none,addr=192.168.0.2 0 0

# mount `awk '$3 == "nfs4" { print $1" "$2" -o remount,"$4 }' /proc/mounts`
# echo $?
32

# mount.nfs `awk '$3 == "nfs4" { print $1" "$2" -o remount,"$4 }' /proc/mounts`
# echo $?
32

# strace -e mount -s 4096 -v mount.nfs `awk '$3 == "nfs4" { print $1" "$2" -o remount,"$4 }' /proc/mounts`
mount("192.168.0.2:/tftpboot/", "/mnt/tmp", 0x4121bd, MS_REMOUNT|0x200000, "vers=4,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.0.2,minorversion=0,local_lock=none,addr=192.168.0.2") = -1 EINVAL (Invalid argument)

Note You need to log in before you can comment on or make changes to this bug.