- mark map instances stale so they aren't "cleaned" during updates.
- fix large file compile time option.
This commit is contained in:
parent
8e33339caa
commit
a2032c8fe2
13
autofs-5.0.2-fix-largefile-dumbness.patch
Normal file
13
autofs-5.0.2-fix-largefile-dumbness.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/Makefile.rules b/Makefile.rules
|
||||
index b1d1a49..30716dc 100644
|
||||
--- a/Makefile.rules
|
||||
+++ b/Makefile.rules
|
||||
@@ -44,7 +44,7 @@ CXXFLAGS = $(CFLAGS)
|
||||
LD = ld
|
||||
SOLDFLAGS = -shared
|
||||
|
||||
-CFLAGS += -D_REENTRANT
|
||||
+CFLAGS += -D_REENTRANT -D_FILE_OFFSET_BITS=64
|
||||
LDFLAGS += -lpthread
|
||||
|
||||
ifdef DMALLOCLIB
|
20
autofs-5.0.2-instance-stale-mark.patch
Normal file
20
autofs-5.0.2-instance-stale-mark.patch
Normal file
@ -0,0 +1,20 @@
|
||||
diff --git a/daemon/lookup.c b/daemon/lookup.c
|
||||
index 70b9e02..4f2b318 100644
|
||||
--- a/daemon/lookup.c
|
||||
+++ b/daemon/lookup.c
|
||||
@@ -325,6 +325,7 @@ static int read_file_source_instance(struct autofs_point *ap, struct map_source
|
||||
instance->recurse = map->recurse;
|
||||
instance->depth = map->depth;
|
||||
}
|
||||
+ instance->stale = map->stale;
|
||||
|
||||
return do_read_map(ap, instance, age);
|
||||
}
|
||||
@@ -346,6 +347,7 @@ static int read_source_instance(struct autofs_point *ap, struct map_source *map,
|
||||
instance->recurse = map->recurse;
|
||||
instance->depth = map->depth;
|
||||
}
|
||||
+ instance->stale = map->stale;
|
||||
|
||||
return do_read_map(ap, instance, age);
|
||||
}
|
10
autofs.spec
10
autofs.spec
@ -4,7 +4,7 @@
|
||||
Summary: A tool for automatically mounting and unmounting filesystems
|
||||
Name: autofs
|
||||
Version: 5.0.2
|
||||
Release: 9
|
||||
Release: 10
|
||||
Epoch: 1
|
||||
License: GPL
|
||||
Group: System Environment/Daemons
|
||||
@ -20,6 +20,8 @@ Patch6: autofs-5.0.2-hi-res-time.patch
|
||||
Patch7: autofs-5.0.2-quoted-slash-alone.patch
|
||||
Patch8: autofs-5.0.2-fix-dnattr-parse.patch
|
||||
Patch9: autofs-5.0.2-fix-nfs-version-in-get-supported-ver-and-cost.patch
|
||||
Patch10: autofs-5.0.2-fix-largefile-dumbness.patch
|
||||
Patch11: autofs-5.0.2-instance-stale-mark.patch
|
||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: autoconf, hesiod-devel, openldap-devel, bison, flex, libxml2-devel, cyrus-sasl-devel, openssl-devel
|
||||
Conflicts: kernel < 2.6.17
|
||||
@ -71,6 +73,8 @@ echo %{version}-%{release} > .version
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
%patch9 -p1
|
||||
%patch10 -p1
|
||||
%patch11 -p1
|
||||
|
||||
%build
|
||||
#CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=%{_libdir}
|
||||
@ -123,6 +127,10 @@ fi
|
||||
%{_libdir}/autofs/
|
||||
|
||||
%changelog
|
||||
* Mon Jul 30 2007 Ian Kent <ikent@redhat.com> - 5.0.2-10
|
||||
- mark map instances stale so they aren't "cleaned" during updates.
|
||||
- fix large file compile time option.
|
||||
|
||||
* Fri Jul 27 2007 Ian Kent <ikent@redhat.com> - 5.0.2-9
|
||||
- fix version passed to get_supported_ver_and_cost (bz 249574).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user