[mlocate] cron: don't add zfs to PRUNEFS

Michal Sekletar msekleta at fedoraproject.org
Fri Jul 25 18:24:25 UTC 2014


commit 6f379f79f0c8ff9383bad57f871661a904606d15
Author: Michal Sekletar <msekleta at redhat.com>
Date:   Fri Jul 25 20:19:43 2014 +0200

    cron: don't add zfs to PRUNEFS
    
    Resolves: #1065366

 mlocate.cron |    2 +-
 mlocate.spec |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/mlocate.cron b/mlocate.cron
index ffd1a07..2fed430 100644
--- a/mlocate.cron
+++ b/mlocate.cron
@@ -1,5 +1,5 @@
 #!/bin/sh
-nodevs=$(< /proc/filesystems awk '$1 == "nodev" && $2 != "rootfs" { print $2 }')
+nodevs=$(< /proc/filesystems awk '$1 == "nodev" && $2 != "rootfs" && $2 != "zfs" { print $2 }')
 renice +19 -p $$ >/dev/null 2>&1
 ionice -c2 -n7 -p $$ >/dev/null 2>&1
 /usr/bin/updatedb -f "$nodevs"
diff --git a/mlocate.spec b/mlocate.spec
index 1d1f344..5c49f37 100644
--- a/mlocate.spec
+++ b/mlocate.spec
@@ -3,7 +3,7 @@
 Summary: An utility for finding files by name
 Name: mlocate
 Version: 0.26
-Release: 5%{?dist}
+Release: 6%{?dist}
 License: GPLv2
 URL: https://fedorahosted.org/mlocate/
 Group: Applications/System
@@ -62,6 +62,9 @@ fi
 %ghost %{_localstatedir}/lib/mlocate/mlocate.db
 
 %changelog
+* Fri Jul 25 2014 Michal Sekletar <msekleta at redhat.com> - 0.26-6
+- Don't add zfs to PRUNEFS when calling updatedb from cron (#1065366)
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.26-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list