[PATCH 13/13] autofs-5.1.4 - enable SIGUSR2 handling in rpm spec file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Because the preferred usage is to leave busy mounts in place and
re-connect to them on start up the SIGUSR2 logic hasn't been used
or tested for a long time.

But it can be useful so enable it so any problems with it can be
identified and resolved.

It turns out that the SIGUSR2 forced shutdown behaves like a SIGUSR1
prune expire excpet that autofs will shutdown if all current mounts
are expired. But the kernel currently won't trigger expires for
mounts that are in use so it doesn't function quite as intended.

Enable the forced shutdown anyway so it will function if the kernel
supports it.

Signed-off-by: Ian Kent <raven@xxxxxxxxxx>
---
 CHANGELOG   |    1 +
 autofs.spec |    1 +
 2 files changed, 2 insertions(+)

diff --git a/CHANGELOG b/CHANGELOG
index 0b7983ea..740f804f 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -29,6 +29,7 @@ xx/xx/2018 autofs-5.1.5
 - add-man page note about extra slashes in paths.
 - change expire type naming to better reflect usage.
 - use defines for expire type.
+- enable SIGUSR2 handling in rpm spec file.
 
 19/12/2017 autofs-5.1.4
 - fix spec file url.
diff --git a/autofs.spec b/autofs.spec
index f857d9da..6419e3e3 100644
--- a/autofs.spec
+++ b/autofs.spec
@@ -97,6 +97,7 @@ LDFLAGS="-Wl,-z,now" \
 ./configure --libdir=%{_libdir} \
 	--disable-mount-locking \
 	--enable-ignore-busy \
+	--enable-forced-shutdown \
 	%{?systemd_configure_arg:} \
 	%{?libtirpc_configure_arg:} \
 	%{?fedfs_configure_arg:}

--
To unsubscribe from this list: send the line "unsubscribe autofs" in



[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux