Date: Wed, 06 Feb 2013 13:00:32 -0500 From: Greg Larkin <glarkin@FreeBSD.org> To: Tim Gustafson <tjg@ucsc.edu> Cc: questions@freebsd.org Subject: Re: Restricting Periodic Scripts Message-ID: <51129A40.1050606@FreeBSD.org> In-Reply-To: <CAPyBAS6vna0xMYbPR05PpFbMOJHJ613b%2BYJGhi9n-8kvfZP9JQ@mail.gmail.com> References: <CAPyBAS6tFC-LCKAzMMeq4nxkqJsD29tRTF=k7cAyUTFhkiKFCQ@mail.gmail.com> <CAPyBAS6vna0xMYbPR05PpFbMOJHJ613b%2BYJGhi9n-8kvfZP9JQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2/6/13 12:26 PM, Tim Gustafson wrote: > I have a FreeBSD ZFS file server with tens of millions of files > stored on it. > > But, the daily periodic scripts like > /etc/periodic/security/110.neggrpperm and > /etc/periodic/weekly/310.locate take hours iterating through those > folders, and I just don't need them to be scanned. > > I see that I can edit /etc/locate.rc to fix the behavior for > /etc/periodic/weekly/310.locate but I don't see a way to exclude > folders from other scripts like > /etc/periodic/security/110.neggrpperm from scanning them. Is there > any way to prune out folders that I don't want scanned, or should I > just disable those jobs? > Hi Tim, Have a look at this posting from 2012: http://forums.freebsd.org/archive/index.php/t-31846.html There is a patch for the script in there, but I didn't check to see if the author ever filed a PR. There's also a workaround that involves using the nosuid mount option, if that is acceptable in your environment. Regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlESmkAACgkQ0sRouByUApB2kgCfalTZRa5GQlAZjcNXq5qxfA3e 2rwAoLCMoscJYLVuevYLjZGj9qYiIjZD =3yUC -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51129A40.1050606>