- Stopped /etc/sysconfig/nfs from being overwritten on updates (bz 234543)
- Added -o nordirplus mount option to disable READDIRPLUS (bz 240357) - Disabled the FSCache patch, for now...
This commit is contained in:
parent
0b932f587a
commit
be8827d700
45
nfs-utils-1.0.10-mount-nordirplus.patch
Normal file
45
nfs-utils-1.0.10-mount-nordirplus.patch
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
--- nfs-utils-1.0.10/utils/mount/nfs_mount.h.orig 2007-05-15 09:54:09.293871000 -0400
|
||||||
|
+++ nfs-utils-1.0.10/utils/mount/nfs_mount.h 2007-05-15 09:55:02.842057000 -0400
|
||||||
|
@@ -63,6 +63,7 @@ struct nfs_mount_data {
|
||||||
|
#define NFS_MOUNT_BROKEN_SUID 0x0400 /* 4 */
|
||||||
|
#define NFS_MOUNT_NOACL 0x0800 /* 4 */
|
||||||
|
#define NFS_MOUNT_SECFLAVOUR 0x2000 /* 5 */
|
||||||
|
+#define NFS_MOUNT_NORDIRPLUS 0x4000 /* 5 */
|
||||||
|
|
||||||
|
/* security pseudoflavors */
|
||||||
|
|
||||||
|
--- nfs-utils-1.0.10/utils/mount/nfsmount.c.orig 2007-05-15 09:54:09.331833000 -0400
|
||||||
|
+++ nfs-utils-1.0.10/utils/mount/nfsmount.c 2007-05-15 09:55:02.852057000 -0400
|
||||||
|
@@ -762,6 +762,10 @@ parse_options(char *old_opts, struct nfs
|
||||||
|
data->flags &= ~NFS_MOUNT_NOACL;
|
||||||
|
if (!val)
|
||||||
|
data->flags |= NFS_MOUNT_NOACL;
|
||||||
|
+ } else if (!strcmp(opt, "rdirplus")) {
|
||||||
|
+ data->flags &= ~NFS_MOUNT_NORDIRPLUS;
|
||||||
|
+ if (!val)
|
||||||
|
+ data->flags |= NFS_MOUNT_NORDIRPLUS;
|
||||||
|
#endif
|
||||||
|
} else {
|
||||||
|
bad_option:
|
||||||
|
@@ -947,6 +951,7 @@ nfsmount(const char *spec, const char *n
|
||||||
|
#endif
|
||||||
|
#if NFS_MOUNT_VERSION >= 5
|
||||||
|
printf("sec = %u ", data.pseudoflavor);
|
||||||
|
+ printf("readdirplus = %d ", (data.flags & NFS_MOUNT_NORDIRPLUS) != 0);
|
||||||
|
#endif
|
||||||
|
printf("\n");
|
||||||
|
#endif
|
||||||
|
--- nfs-utils-1.0.10/utils/mount/nfs.man.orig 2007-05-15 09:54:09.210933000 -0400
|
||||||
|
+++ nfs-utils-1.0.10/utils/mount/nfs.man 2007-05-15 09:55:02.860057000 -0400
|
||||||
|
@@ -272,6 +272,11 @@ default UDP protocol. Many NFS servers
|
||||||
|
.I udp
|
||||||
|
Mount the NFS filesystem using the UDP protocol. This
|
||||||
|
is the default.
|
||||||
|
+.TP 1.5i
|
||||||
|
+.I nordirplus
|
||||||
|
+Disables NFSv3 READDIRPLUS RPCs. Use this options when
|
||||||
|
+mounting servers that don't support or have broken
|
||||||
|
+READDIRPLUS implementations.
|
||||||
|
.P
|
||||||
|
All of the non-value options have corresponding nooption forms.
|
||||||
|
For example, nointr means don't allow file operations to be
|
132
nfs-utils.spec
132
nfs-utils.spec
@ -2,20 +2,15 @@ Summary: NFS utilities and supporting clients and daemons for the kernel NFS ser
|
|||||||
Name: nfs-utils
|
Name: nfs-utils
|
||||||
URL: http://sourceforge.net/projects/nfs
|
URL: http://sourceforge.net/projects/nfs
|
||||||
Version: 1.0.12
|
Version: 1.0.12
|
||||||
Release: 7%{?dist}
|
Release: 6%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
|
|
||||||
# group all 32bit related archs
|
# group all 32bit related archs
|
||||||
%define all_32bit_archs i386 i686 athlon
|
%define all_32bit_archs i386 i686 athlon
|
||||||
|
|
||||||
# Create mount.nfs and umount.nfs binaries that will be
|
|
||||||
# used by the system mount command to mount (and umount)
|
|
||||||
# both NFS and NFS4 filesystems.
|
|
||||||
%define enablemount 1
|
|
||||||
|
|
||||||
# Enable the ability to set the 'fsc' mount flag which
|
# Enable the ability to set the 'fsc' mount flag which
|
||||||
# will allow NFS to use FS-Cache.
|
# will allow NFS to use FS-Cache.
|
||||||
%define enablefscache 1
|
%define enablefscache 0
|
||||||
|
|
||||||
Source0: http://www.kernel.org/pub/linux/utils/nfs/%{name}-%{version}.tar.bz2
|
Source0: http://www.kernel.org/pub/linux/utils/nfs/%{name}-%{version}.tar.bz2
|
||||||
Source1: ftp://nfs.sourceforge.net/pub/nfs/nfs.doc.tar.gz
|
Source1: ftp://nfs.sourceforge.net/pub/nfs/nfs.doc.tar.gz
|
||||||
@ -27,39 +22,36 @@ Source13: rpcgssd.init
|
|||||||
Source14: rpcsvcgssd.init
|
Source14: rpcsvcgssd.init
|
||||||
Source15: nfs.sysconfig
|
Source15: nfs.sysconfig
|
||||||
|
|
||||||
Patch50: nfs-utils-1.0.5-statdpath.patch
|
Patch00: nfs-utils-1.0.5-statdpath.patch
|
||||||
Patch51: nfs-utils-1.0.6-mountd.patch
|
Patch01: nfs-utils-1.0.6-mountd.patch
|
||||||
Patch52: nfs-utils-1.0.6-idmap.conf.patch
|
Patch02: nfs-utils-1.0.6-idmap.conf.patch
|
||||||
Patch53: nfs-utils-1.0.6-gssd_mixed_case.patch
|
Patch03: nfs-utils-1.0.6-gssd_mixed_case.patch
|
||||||
Patch54: nfs-utils-1.0.8-privports.patch
|
Patch04: nfs-utils-1.0.8-privports.patch
|
||||||
Patch55: nfs-utils-1.0.12-export-nosubtree.patch
|
Patch05: nfs-utils-1.0.12-export-nosubtree.patch
|
||||||
|
Patch06: nfs-utils-1.0.9-mount-options-v3.patch
|
||||||
%if %{enablemount}
|
Patch07: nfs-utils-1.0.9-lazy-umount.patch
|
||||||
Patch70: nfs-utils-1.0.9-mount-options-v3.patch
|
Patch08: nfs-utils-1.0.9-mount-sloppy.patch
|
||||||
Patch71: nfs-utils-1.0.9-lazy-umount.patch
|
Patch09: nfs-utils-1.0.9-mount-man-nfs.patch
|
||||||
Patch72: nfs-utils-1.0.9-mount-sloppy.patch
|
Patch10: nfs-utils-1.0.9-return-mount-error.patch
|
||||||
Patch73: nfs-utils-1.0.9-mount-man-nfs.patch
|
Patch11: nfs-utils-1.0.9-nfsmount-authnone.patch
|
||||||
Patch74: nfs-utils-1.0.9-return-mount-error.patch
|
Patch12: nfs-utils-1.0.9-mount-remount.patch
|
||||||
Patch75: nfs-utils-1.0.9-nfsmount-authnone.patch
|
Patch13: nfs-utils-1.0.10-mount-nfsvers.patch
|
||||||
Patch76: nfs-utils-1.0.9-mount-remount.patch
|
Patch14: nfs-utils-1.0.10-udp-no-connect.patch
|
||||||
Patch77: nfs-utils-1.0.10-mount-nfsvers.patch
|
Patch15: nfs-utils-1.0.10-v4-umounts.patch
|
||||||
Patch78: nfs-utils-1.0.10-udp-no-connect.patch
|
Patch16: nfs-utils-1.0.9-mount-quotes.patch
|
||||||
Patch79: nfs-utils-1.0.10-v4-umounts.patch
|
Patch17: nfs-utils-1.0.10-mount-fake.patch
|
||||||
Patch80: nfs-utils-1.0.9-mount-quotes.patch
|
Patch18: nfs-utils-1.0.12-mount-v4-errors.patch
|
||||||
Patch81: nfs-utils-1.0.10-mount-fake.patch
|
Patch19: nfs-utils-1.0.12-rmtab-ipaddr-manupdate.patch
|
||||||
Patch82: nfs-utils-1.0.12-mount-v4-errors.patch
|
Patch20: nfs-utils-1.0.12-mountd-memleak.patch
|
||||||
Patch83: nfs-utils-1.0.12-rmtab-ipaddr-manupdate.patch
|
Patch21: nfs-utils-1.0.12-nfsd-macargs.patch
|
||||||
Patch84: nfs-utils-1.0.12-mountd-memleak.patch
|
Patch22: nfs-utils-1.0.12-mtab-mis-unlock.patch
|
||||||
Patch85: nfs-utils-1.0.12-nfsd-macargs.patch
|
Patch23: nfs-utils-1.0.12-mountd-etab.patch
|
||||||
Patch86: nfs-utils-1.0.12-mtab-mis-unlock.patch
|
Patch24: nfs-utils-1.0.10-mount-nordirplus.patch
|
||||||
Patch87: nfs-utils-1.0.12-mountd-etab.patch
|
|
||||||
|
|
||||||
%if %{enablefscache}
|
%if %{enablefscache}
|
||||||
Patch90: nfs-utils-1.0.9-mount-fsc.patch
|
Patch90: nfs-utils-1.0.9-mount-fsc.patch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Patch100: nfs-utils-1.0.9-compile.patch
|
Patch100: nfs-utils-1.0.9-compile.patch
|
||||||
|
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -105,35 +97,35 @@ This package also contains the mount.nfs and umount.nfs program.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch50 -p1
|
%patch00 -p1
|
||||||
%patch51 -p1
|
%patch01 -p1
|
||||||
%patch52 -p1
|
%patch02 -p1
|
||||||
%patch53 -p1
|
%patch03 -p1
|
||||||
%patch54 -p1
|
%patch04 -p1
|
||||||
%patch55 -p1
|
%patch05 -p1
|
||||||
%if %{enablemount}
|
%patch06 -p1
|
||||||
%patch70 -p1
|
%patch07 -p1
|
||||||
%patch71 -p1
|
%patch08 -p1
|
||||||
%patch72 -p1
|
%patch09 -p1
|
||||||
%patch73 -p1
|
%patch10 -p1
|
||||||
%patch74 -p1
|
%patch11 -p1
|
||||||
%patch75 -p1
|
%patch12 -p1
|
||||||
%patch76 -p1
|
%patch13 -p1
|
||||||
%patch77 -p1
|
%patch14 -p1
|
||||||
%patch78 -p1
|
%patch15 -p1
|
||||||
%patch79 -p1
|
%patch16 -p1
|
||||||
%patch80 -p1
|
%patch17 -p1
|
||||||
%patch81 -p1
|
%patch18 -p1
|
||||||
%patch82 -p1
|
%patch19 -p1
|
||||||
%patch83 -p1
|
%patch20 -p1
|
||||||
%patch84 -p1
|
%patch21 -p1
|
||||||
%patch85 -p1
|
%patch22 -p1
|
||||||
%patch86 -p1
|
%patch23 -p1
|
||||||
%patch87 -p1
|
%patch24 -p1
|
||||||
|
|
||||||
%if %{enablefscache}
|
%if %{enablefscache}
|
||||||
%patch90 -p1
|
%patch90 -p1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
|
||||||
|
|
||||||
# Do the magic to get things to compile
|
# Do the magic to get things to compile
|
||||||
%patch100 -p1
|
%patch100 -p1
|
||||||
@ -142,9 +134,6 @@ This package also contains the mount.nfs and umount.nfs program.
|
|||||||
find . -name "*.orig" | xargs rm -f
|
find . -name "*.orig" | xargs rm -f
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %{enablemount}
|
|
||||||
ENABLEMOUNT="--enable-mount"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifarch s390 s390x
|
%ifarch s390 s390x
|
||||||
PIE="-fPIE"
|
PIE="-fPIE"
|
||||||
@ -160,7 +149,7 @@ CFLAGS="`echo $RPM_OPT_FLAGS $ARCH_OPT_FLAGS $PIE`"
|
|||||||
CFLAGS="$CFLAGS" \
|
CFLAGS="$CFLAGS" \
|
||||||
CPPFLAGS="$DEFINES" \
|
CPPFLAGS="$DEFINES" \
|
||||||
LDFLAGS="-pie" \
|
LDFLAGS="-pie" \
|
||||||
$ENABLEMOUNT
|
--enable-mount
|
||||||
|
|
||||||
make all
|
make all
|
||||||
|
|
||||||
@ -185,10 +174,7 @@ mkdir -p $RPM_BUILD_ROOT/var/lib/nfs/rpc_pipefs
|
|||||||
|
|
||||||
touch $RPM_BUILD_ROOT/var/lib/nfs/rmtab
|
touch $RPM_BUILD_ROOT/var/lib/nfs/rmtab
|
||||||
mv $RPM_BUILD_ROOT/usr/sbin/{rpc.lockd,rpc.statd} $RPM_BUILD_ROOT/sbin
|
mv $RPM_BUILD_ROOT/usr/sbin/{rpc.lockd,rpc.statd} $RPM_BUILD_ROOT/sbin
|
||||||
|
|
||||||
%if %{enablemount}
|
|
||||||
mv $RPM_BUILD_ROOT/usr/sbin/{mount.*,umount.*} $RPM_BUILD_ROOT/sbin
|
mv $RPM_BUILD_ROOT/usr/sbin/{mount.*,umount.*} $RPM_BUILD_ROOT/sbin
|
||||||
%endif
|
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/lib/nfs/statd
|
mkdir -p $RPM_BUILD_ROOT/var/lib/nfs/statd
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/lib/nfs/v4recovery
|
mkdir -p $RPM_BUILD_ROOT/var/lib/nfs/v4recovery
|
||||||
@ -308,19 +294,17 @@ fi
|
|||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
%config /etc/rc.d/init.d/nfslock
|
%config /etc/rc.d/init.d/nfslock
|
||||||
|
|
||||||
%if %{enablemount}
|
|
||||||
%attr(4755,root,root) /sbin/mount.nfs
|
%attr(4755,root,root) /sbin/mount.nfs
|
||||||
%attr(4755,root,root) /sbin/mount.nfs4
|
%attr(4755,root,root) /sbin/mount.nfs4
|
||||||
%attr(4755,root,root) /sbin/umount.nfs
|
%attr(4755,root,root) /sbin/umount.nfs
|
||||||
%attr(4755,root,root) /sbin/umount.nfs4
|
%attr(4755,root,root) /sbin/umount.nfs4
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue May 22 2007 Steve Dickson <steved@redhat.com> 1.0.10-7
|
* Tue May 22 2007 Steve Dickson <steved@redhat.com> 1.0.10-6
|
||||||
- Stopped /etc/sysconfig/nfs from being overwritten on updates (bz 234543)
|
|
||||||
|
|
||||||
* Wed May 16 2007 Steve Dickson <steved@redhat.com> 1.0.10-6
|
|
||||||
- Make sure the condrestarts exit with a zero value (bz 240225)
|
- Make sure the condrestarts exit with a zero value (bz 240225)
|
||||||
|
- Stopped /etc/sysconfig/nfs from being overwritten on updates (bz 234543)
|
||||||
|
- Added -o nordirplus mount option to disable READDIRPLUS (bz 240357)
|
||||||
|
- Disabled the FSCache patch, for now...
|
||||||
|
|
||||||
* Wed May 10 2007 Steve Dickson <steved@redhat.com> 1.0.12-5
|
* Wed May 10 2007 Steve Dickson <steved@redhat.com> 1.0.12-5
|
||||||
- Fix mount.nfs4 to display correct error message (bz 227212)
|
- Fix mount.nfs4 to display correct error message (bz 227212)
|
||||||
|
Loading…
Reference in New Issue
Block a user