bin/151321: mount_nfs won't recognize readahead

Jaakko Heinonen jh at FreeBSD.org
Sun Oct 10 11:40:04 UTC 2010


The following reply was made to PR bin/151321; it has been noted by GNATS.

From: Jaakko Heinonen <jh at FreeBSD.org>
To: Simon Walton <simonw at matteworld.com>
Cc: bug-followup at FreeBSD.org
Subject: Re: bin/151321: mount_nfs won't recognize readahead
Date: Sun, 10 Oct 2010 14:35:20 +0300

 Hi,
 
 On 2010-10-08, Simon Walton wrote:
 > mongo# mount_nfs -a 2 m-6:/mnt/dodo /cdrom
 > -a deprecated, use -o readhead=<value>
 > mount_nfs: /cdrom, mount option <readahead> is unknown: Invalid argument
 > mongo# mount_nfs -o readahead=2 m-6:/mnt/dodo /cdrom
 > mount_nfs: /cdrom, mount option <readahead> is unknown: Invalid argument
 > mongo# mount_nfs -o readhead=2 m-6:/mnt/dodo /cdrom
 > mount_nfs: /cdrom, mount option <readhead> is unknown: Invalid argument
 > 
 > The mount operation is unsuccessful in all cases.
 
 Could you try this patch?
 
 %%%
 Index: sys/nfsclient/nfs_vfsops.c
 ===================================================================
 --- sys/nfsclient/nfs_vfsops.c	(revision 213666)
 +++ sys/nfsclient/nfs_vfsops.c	(working copy)
 @@ -777,10 +777,10 @@ static const char *nfs_opts[] = { "from"
      "noatime", "noexec", "suiddir", "nosuid", "nosymfollow", "union",
      "noclusterr", "noclusterw", "multilabel", "acls", "force", "update",
      "async", "dumbtimer", "noconn", "nolockd", "intr", "rdirplus", "resvport",
 -    "readdirsize", "soft", "hard", "mntudp", "tcp", "udp", "wsize", "rsize",
 -    "retrans", "acregmin", "acregmax", "acdirmin", "acdirmax", 
 -    "deadthresh", "hostname", "timeout", "addr", "fh", "nfsv3", "sec",
 -    "maxgroups", "principal", "negnametimeo",
 +    "readdirsize", "readahead", "soft", "hard", "mntudp", "tcp", "udp",
 +    "wsize", "rsize", "retrans", "acregmin", "acregmax", "acdirmin",
 +    "acdirmax", "deadthresh", "hostname", "timeout", "addr", "fh",
 +    "nfsv3", "sec", "maxgroups", "principal", "negnametimeo",
      NULL };
  
  /*
 %%%
 
 -- 
 Jaakko


More information about the freebsd-bugs mailing list