From owner-freebsd-stable@FreeBSD.ORG Fri May 4 16:05:18 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40A91106564A for ; Fri, 4 May 2012 16:05:18 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qa0-f49.google.com (mail-qa0-f49.google.com [209.85.216.49]) by mx1.freebsd.org (Postfix) with ESMTP id EE42D8FC12 for ; Fri, 4 May 2012 16:05:17 +0000 (UTC) Received: by qabj40 with SMTP id j40so1483786qab.15 for ; Fri, 04 May 2012 09:05:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=sN9fvYodsX0O4b8fYD9HHMqI7Uz+yKHXj09PtlnxCEE=; b=bdFRJoijQ37SD/I7xtbXGmcwM67fCMlRPVW1cyTPVon6T1NEu3BWI5T6y5DGV5mwpm mQPBYF8XwjB+FLrjZChEPgGNO8vowN5zY/Knp2Uj+frUERQ2uBpS17IwKUi2q9emNor3 r9kIBEGEUT1PcZwHjuLIHMsE9HgRywPwvwjT6erScOWCGiSRxdbeVgbn4tU6RsD9LMB+ TqY8NvP+6gb1PRlWlUr94nTgLzQYEtcu9F7neob3yrkpX/OacqvXSQsKJvmxaJPVSLm9 9lyNPsKyjVO6v83ncyIcUN5U1sxSv4FnlBhhrG8fNG/N+UuTVqUpfrG/C2V8ORKncNj+ Tarw== MIME-Version: 1.0 Received: by 10.229.136.208 with SMTP id s16mr3196770qct.50.1336147517371; Fri, 04 May 2012 09:05:17 -0700 (PDT) Received: by 10.229.191.82 with HTTP; Fri, 4 May 2012 09:05:17 -0700 (PDT) Date: Fri, 4 May 2012 09:05:17 -0700 Message-ID: From: Freddie Cash To: FreeBSD Stable Content-Type: text/plain; charset=UTF-8 Subject: Make filesystem type configurable for periodic(8)? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2012 16:05:18 -0000 A few of the periodic(8) scripts in FreeBSD have constructs similar to the following to get which filesystems to scan for various things: MP=`mount -t ufs,zfs | awk '$0 !~ /no(suid|exec)/ { print $3 }'` For systems with large ZFS pools, and many ZFS filesystems, these periodic scripts can grind it to its knees, and then some. For backups servers where we don't really care about the ownership/permissions of files from the FreeBSD perspective, we really don't want the ZFS filesytems to be scanned; only the UFS ones for the FreeBSD OS install. To that end, I have to manually edit these files to remove the ",zfs": MP=`mount -t ufs | awk '$0 !~ /no(suid|exec)/ { print $3 }'` ^^^^^^^^ Would it be worthwhile to anyone else to make the filesystem type(s) to scan via the periodic(8) scripts a variable that's set by default in /etc/defaults/periodic.conf and that user's can override via /etc/periodic.conf? Or, am I the only one that's suffering here? :) If there's interesting in this, I can look into coming up with some patches. But wanted to check if anyone else would find it useful. -- Freddie Cash fjwcash@gmail.com