summaryrefslogtreecommitdiff
path: root/net-fs
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-29 05:55:53 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-29 05:55:53 +0000
commit3daf42c943bd9291bd5ddf2052390a90b9425bf4 (patch)
tree02290728db9ede0259665dd35c5e59041623e616 /net-fs
parentUpdate SELinux patch for 5.93, fixes bug #120254. (diff)
downloadhistorical-3daf42c943bd9291bd5ddf2052390a90b9425bf4.tar.gz
historical-3daf42c943bd9291bd5ddf2052390a90b9425bf4.tar.bz2
historical-3daf42c943bd9291bd5ddf2052390a90b9425bf4.zip
Uncompress patch #120673 by Simon Stelling.
Package-Manager: portage-2.1_pre3-r1
Diffstat (limited to 'net-fs')
-rw-r--r--net-fs/nfs-utils/ChangeLog9
-rw-r--r--net-fs/nfs-utils/Manifest12
-rw-r--r--net-fs/nfs-utils/files/nfs-utils-1.0.6-usn36.patch115
-rw-r--r--net-fs/nfs-utils/files/nfs-utils-1.0.6-usn36.patch.gzbin5596 -> 0 bytes
-rw-r--r--net-fs/nfs-utils/nfs-utils-1.0.6-r6.ebuild6
5 files changed, 131 insertions, 11 deletions
diff --git a/net-fs/nfs-utils/ChangeLog b/net-fs/nfs-utils/ChangeLog
index 98f6937b2aba..b842d5f98869 100644
--- a/net-fs/nfs-utils/ChangeLog
+++ b/net-fs/nfs-utils/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-fs/nfs-utils
-# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.71 2005/10/08 20:34:06 vapier Exp $
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.72 2006/01/29 05:55:53 vapier Exp $
+
+ 29 Jan 2006; Mike Frysinger <vapier@gentoo.org>
+ +files/nfs-utils-1.0.6-usn36.patch, -files/nfs-utils-1.0.6-usn36.patch.gz,
+ nfs-utils-1.0.6-r6.ebuild:
+ Uncompress patch #120673 by Simon Stelling.
*nfs-utils-1.0.7-r2 (08 Oct 2005)
diff --git a/net-fs/nfs-utils/Manifest b/net-fs/nfs-utils/Manifest
index 88f883adca28..50ec7e97f318 100644
--- a/net-fs/nfs-utils/Manifest
+++ b/net-fs/nfs-utils/Manifest
@@ -1,25 +1,25 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 b2c2e3d2fe34adf5699943ba00ccb402 ChangeLog 10586
+MD5 b94b089a64ff876396b5a2834b7b41d2 ChangeLog 10789
MD5 3a3d8bd1a03bbf2c51a4e77a3516febd files/digest-nfs-utils-1.0.6-r6 67
MD5 46e91b0dea9cbbfedcdccc9386b6326d files/digest-nfs-utils-1.0.7-r2 67
MD5 a02eed87e5d581e56feb0f6dfd18e6df files/exports 66
MD5 1d8228f424a87830f927ea90b9ad2b7f files/nfs 6863
MD5 3c693e012dcb68827b8f82cc98fa129b files/nfs-utils-0.3.3-rquotad-overflow.patch 1243
MD5 3878538fac900450212b414f8c8c39ab files/nfs-utils-1.0.6-uclibc.patch 547
-MD5 df57bdbe3dfddd40cda65b04509d5957 files/nfs-utils-1.0.6-usn36.patch.gz 5596
+MD5 2c74906c8e74e98c9bd309177e7e2053 files/nfs-utils-1.0.6-usn36.patch 3676
MD5 77b7b275efe6533d3aaf065c89f804ef files/nfs-utils-1.0.7-gcc4.patch 553
MD5 39cf4f293c56793694cb75afbd5c0c17 files/nfs-utils-1.0.7-man-pages.patch 219
MD5 fc332370f9517304bc251f505b17abf2 files/nfs.confd 533
MD5 1f3e6130e4a60767a213d34ff3131ae4 files/nfsmount 1171
MD5 9cee4adcef8a47ea4ee35090f7f89b0a metadata.xml 225
-MD5 a5785bca6bda4d00aabdc28e36802df1 nfs-utils-1.0.6-r6.ebuild 2926
+MD5 61577ca1560634f3e6391c6b056eee6e nfs-utils-1.0.6-r6.ebuild 2923
MD5 5aa17cc2095bdbd3379b5eb15ab91784 nfs-utils-1.0.7-r2.ebuild 3346
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
-iD8DBQFDh2wXgIKl8Uu19MoRAlA/AJ9b27bwsD0DyiFW3eAzbT7Yr553fQCfdRO6
-duqdK9M83hIJcolGZzmYf14=
-=daug
+iD8DBQFD3FkC2+ySkm8kpY0RAvnQAJsFTOuL2tdmfWezm3NT2JLmMPaHTQCbBv9/
+vY5rskTt5b5LE6SfuXtYvds=
+=2/9I
-----END PGP SIGNATURE-----
diff --git a/net-fs/nfs-utils/files/nfs-utils-1.0.6-usn36.patch b/net-fs/nfs-utils/files/nfs-utils-1.0.6-usn36.patch
new file mode 100644
index 000000000000..8636519c4218
--- /dev/null
+++ b/net-fs/nfs-utils/files/nfs-utils-1.0.6-usn36.patch
@@ -0,0 +1,115 @@
+--- nfs-utils/utils/exportfs/exports.man
++++ nfs-utils/utils/exportfs/exports.man
+@@ -256,6 +256,28 @@
+ then the nominted path must be a mountpoint for the exportpoint to be
+ exported.
+
++.TP
++.IR fsid= num
++This option forces the filesystem identification portion of the file
++handle and file attributes used on the wire to be
++.I num
++instead of a number derived from the major and minor number of the
++block device on which the filesystem is mounted. Any 32 bit number
++can be used, but it must be unique amongst all the exported filesystems.
++
++This can be useful for NFS failover, to ensure that both servers of
++the failover pair use the same NFS file handles for the shared filesystem
++thus avoiding stale file handles after failover.
++
++Some Linux filesystems are not mounted on a block device; exporting
++these via NFS requires the use of the
++.I fsid
++option (although that may still not be enough).
++
++The value 0 has a special meaning when use with NFSv4. NFSv4 has a
++concept of a root of the overall exported filesystem. The export point
++exported with fsid=0 will be used as this root.
++
+ .SS User ID Mapping
+ .PP
+ .I nfsd
+--- nfs-utils/utils/statd/statd.c
++++ nfs-utils/utils/statd/statd.c
+@@ -179,8 +179,10 @@
+ struct stat st;
+
+ if (stat(SM_DIR, &st) == -1 &&
+- stat(DIR_BASE, &st) == -1)
++ stat(DIR_BASE, &st) == -1) {
+ st.st_uid = 0;
++ st.st_gid = 0;
++ }
+
+ if (st.st_uid == 0) {
+ note(N_WARNING, "statd running as root. chown %s to choose different user\n",
+@@ -399,6 +401,11 @@
+ signal (SIGTERM, killer);
+ /* WARNING: the following works on Linux and SysV, but not BSD! */
+ signal(SIGCHLD, SIG_IGN);
++ /*
++ * Ignore SIGPIPE to avoid statd dying when peers close their
++ * TCP connection while we're trying to reply to them.
++ */
++ signal(SIGPIPE, SIG_IGN);
+
+ /* initialize out_port */
+ statd_get_socket(out_port);
+--- nfs-utils/utils/rquotad/rquota_server.c
++++ nfs-utils/utils/rquotad/rquota_server.c
+@@ -76,6 +76,7 @@
+ char *pathname, *qfpathname;
+ int fd, err, id, type;
+ struct stat stm, stn;
++ struct rquota *rquota;
+
+ /*
+ * First check authentication.
+@@ -168,8 +169,16 @@
+ * Make a copy of the info into the last part of the remote quota
+ * struct which is exactly the same.
+ */
+- memcpy((caddr_t *)&result.getquota_rslt_u.gqr_rquota.rq_bhardlimit,
+- (caddr_t *)&dq_dqb, sizeof(struct dqblk));
++
++ rquota = &result.getquota_rslt_u.gqr_rquota;
++ rquota->rq_bhardlimit = dq_dqb.dqb_bhardlimit;
++ rquota->rq_bsoftlimit = dq_dqb.dqb_bsoftlimit;;
++ rquota->rq_curblocks = dq_dqb.dqb_curblocks;
++ rquota->rq_fhardlimit = dq_dqb.dqb_ihardlimit;
++ rquota->rq_fsoftlimit = dq_dqb.dqb_isoftlimit;
++ rquota->rq_curfiles = dq_dqb.dqb_curinodes;
++ rquota->rq_btimeleft = dq_dqb.dqb_btime;
++ rquota->rq_ftimeleft = dq_dqb.dqb_itime;
+
+ return(&result);
+ }
+--- nfs-utils/utils/mountd/cache.c
++++ nfs-utils/utils/mountd/cache.c
+@@ -67,6 +67,8 @@
+ if (inet_aton(ipaddr, &addr)==0)
+ return;
+
++ auth_reload();
++
+ /* addr is a valid, interesting address, find the domain name... */
+ client = client_compose(addr);
+
+@@ -138,6 +140,8 @@
+ break;
+ }
+
++ auth_reload();
++
+ /* Now determine export point for this fsid/domain */
+ for (i=0 ; i < MCL_MAXTYPES; i++) {
+ for (exp = exportlist[i]; exp; exp = exp->m_next) {
+@@ -236,6 +240,8 @@
+ if (qword_get(&cp, path, strlen(lbuf)) <= 0)
+ goto out;
+
++ auth_reload();
++
+ /* now find flags for this export point in this domain */
+ for (i=0 ; i < MCL_MAXTYPES; i++) {
+ for (exp = exportlist[i]; exp; exp = exp->m_next) {
diff --git a/net-fs/nfs-utils/files/nfs-utils-1.0.6-usn36.patch.gz b/net-fs/nfs-utils/files/nfs-utils-1.0.6-usn36.patch.gz
deleted file mode 100644
index 9a9a240b05c5..000000000000
--- a/net-fs/nfs-utils/files/nfs-utils-1.0.6-usn36.patch.gz
+++ /dev/null
Binary files differ
diff --git a/net-fs/nfs-utils/nfs-utils-1.0.6-r6.ebuild b/net-fs/nfs-utils/nfs-utils-1.0.6-r6.ebuild
index 756b4fd65d47..47485b97655b 100644
--- a/net-fs/nfs-utils/nfs-utils-1.0.6-r6.ebuild
+++ b/net-fs/nfs-utils/nfs-utils-1.0.6-r6.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.0.6-r6.ebuild,v 1.12 2005/03/15 05:27:58 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.0.6-r6.ebuild,v 1.13 2006/01/29 05:55:53 vapier Exp $
inherit gnuconfig eutils
@@ -21,7 +21,7 @@ DEPEND="${RDEPEND}
src_unpack() {
unpack ${A}
- epatch ${FILESDIR}/nfs-utils-1.0.6-usn36.patch.gz
+ epatch ${FILESDIR}/nfs-utils-1.0.6-usn36.patch
# getrpcbynumber_r is not in the SuSv3 spec. disable it for uClibc
cd ${S}