From owner-freebsd-ports@freebsd.org Wed Feb 28 11:20:48 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0E3E0F3F02E for ; Wed, 28 Feb 2018 11:20:48 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9D91072072 for ; Wed, 28 Feb 2018 11:20:47 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from pi by home.opsec.eu with local (Exim 4.89 (FreeBSD)) (envelope-from ) id 1eqzmw-000JuW-7W; Wed, 28 Feb 2018 12:20:46 +0100 Date: Wed, 28 Feb 2018 12:20:46 +0100 From: Kurt Jaeger To: "Janky Jay, III" Cc: freebsd-ports@freebsd.org Subject: Re: Problem with old files in freebsd-update/files Message-ID: <20180228112046.GV32429@home.opsec.eu> References: <20180227203132.GU32429@home.opsec.eu> <460fb9bb-bc39-a9dd-18f9-dd7e4b28cac1@unfs.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <460fb9bb-bc39-a9dd-18f9-dd7e4b28cac1@unfs.us> X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Feb 2018 11:20:48 -0000 Hi! > > And if I want to clean them up, I do: > > > > cd /var/db > > mv freebsd-update fbsd-up-old > > mkdir freebsd-update > > chmod 700 freebsd-update > > rm -rf fbsd-up-old > > Out of curiosity, why not just: > > ~ # rm -rf /var/db/freebsd-update/* > > Is there a reason you're moving the directory and creating a new, empty > one? Sometimes, depending on the storage media below, it takes time to remove the old directory. So it's faster that way and both the removal and the -update can be done in parallel. -- pi@opsec.eu +49 171 3101372 2 years to go !