From owner-freebsd-stable@FreeBSD.ORG Fri May 4 16:09:01 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 47A0B106566C for ; Fri, 4 May 2012 16:09:01 +0000 (UTC) (envelope-from bryan@shatow.net) Received: from secure.xzibition.com (secure.xzibition.com [173.160.118.92]) by mx1.freebsd.org (Postfix) with ESMTP id E42018FC12 for ; Fri, 4 May 2012 16:09:00 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=shatow.net; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sweb; b=j+z//p J6Ny7PkgojfYucFa+PPdQAibw3INg4HeVKbCfvnLXHKv6fu6CvuCZsh4cuEtgpVM wHoV5HG2QmA8daw3ZBiaskrBnT2Bt+nJGQk7SrDT3uZDTSAROj6OnttmRoqljv3t TJSgtzRl/xKjoohC8bahntDD9rVvwew+pnWes= DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=shatow.net; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sweb; bh=IqDQqRYYIvvJ YOP2a9I8LH2dz5wV2f7KbSXfBOONdlU=; b=dvGobeEOSNNRDC1kPh2f2u1ll/he sCkq0SJzpWHQSnrWTnQZIRp47FwzreTLFDs0rLsb++YnPLobATvhEkVRE0TQemm3 prmV4oEIDRn+262rN7SrXwFESZCWOR7AqWjkj4rGZ/gPQRfuYNZ0hJ0WEUwFPWz4 17tP+QeBa8MRwYY= Received: (qmail 79730 invoked from network); 4 May 2012 11:08:58 -0500 Received: from unknown (HELO ?192.168.0.107?) (bryan@shatow.net@74.94.87.209) by sweb.xzibition.com with ESMTPA; 4 May 2012 11:08:58 -0500 Message-ID: <4FA3FF18.4000309@shatow.net> Date: Fri, 04 May 2012 11:08:56 -0500 From: Bryan Drewery User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Freddie Cash References: In-Reply-To: X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: FreeBSD Stable Subject: Re: 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:09:01 -0000 On 05/04/2012 11:05 AM, Freddie Cash wrote: > 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. > I would find this useful. But further, I have a ZFS root pool as well as a ZFS backup pool. I don't want to exclude all of ZFS, just certain pools, or even certain datasets. Regards, Bryan Drewery