From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 26 03:22:21 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 100E9251 for ; Fri, 26 Apr 2013 03:22:21 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-pb0-x22e.google.com (mail-pb0-x22e.google.com [IPv6:2607:f8b0:400e:c01::22e]) by mx1.freebsd.org (Postfix) with ESMTP id DE260192F for ; Fri, 26 Apr 2013 03:22:20 +0000 (UTC) Received: by mail-pb0-f46.google.com with SMTP id xa7so1004435pbc.19 for ; Thu, 25 Apr 2013 20:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=jowX2TvQSpP2q6RzUSdAhz76hSF1SHmb0HkX8gHrMQ4=; b=tTrztXokclEq4bYS7nwQ+yNQsn4Z7MJOO3rJXx1X132dgHyk0C9qRFgifoYikO2jYi wy3kCmOwhxWn0CQoH/HYlfqAgc/JUpUzfqTkMtyAK0qidY+LqOuqsE+AzWMppRXxkNBO lUUvMla7UtGlCBj/xFIeyHxGm5TL2eNChQrw8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:x-gm-message-state; bh=jowX2TvQSpP2q6RzUSdAhz76hSF1SHmb0HkX8gHrMQ4=; b=cJ/jnnYROMRudqh/5QCP8LLhC8COVOChycQDELXdw6R9/u+28m30pOtwrmZ3b6n2FB XXlgK5nuASKIHQXv7fqg4o3GPw0sEcAfyC+GFYsyPbWoyoJJhCeNaGTg6JysNf6fpt+i ytAreEpfYjdIRf6I5vyue06/VgeLvXYDq4HlRrsUNbvo7PlRj5/NJcDIww4bAgtbHB2w YK85OgRpUwl8pe0jK1KP3Z4jO4FX3oa655lq/4pHd6MtXYGrkeDzverM0MWd9X5te3dQ ChtQxiKQYpc3pTIUToSNYqC8uGlwtqfNJjjyIvIw8zL/KIwVAF259N5/H8b45GYhSYin CaIA== X-Received: by 10.66.144.170 with SMTP id sn10mr28262330pab.42.1366946540587; Thu, 25 Apr 2013 20:22:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.159.97 with HTTP; Thu, 25 Apr 2013 20:21:50 -0700 (PDT) In-Reply-To: References: <20130426025049.GC50623@lor.one-eyed-alien.net> From: Eitan Adler Date: Thu, 25 Apr 2013 23:21:50 -0400 Message-ID: Subject: Re: Some improvements to rm(1) To: Brooks Davis Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQnl7sqnj6jsoWgbv3VlzcyFLN89UH6vTnKtmB7Yc0/fJfmXg+LmsGpeaPUwlwNvuZpT/13M Cc: FreeBSD Hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Apr 2013 03:22:21 -0000 On 25 April 2013 22:56, Eitan Adler wrote: > On 25 April 2013 22:50, Brooks Davis wrote: >> On Thu, Apr 25, 2013 at 10:16:32PM -0400, Eitan Adler wrote: >>> Anyone have thoughts on the following? >>> >>> commit 82c78ba923d8ce4a1bfbb309658c49021c8bb384 >>> Author: Eitan Adler >>> Date: Thu Apr 25 22:14:49 2013 -0400 >>> >>> Take some improvements from DragonFlyBSD: >>> - add const where appropriate >>> - add static where appropriate >>> - fix a whitespace issues >> >> The no-op changes look more correct to me. >> >> I think the -x option seems a bit odd. What is the use case? At a >> first thought, it seems to raise more questions than it resolves. > > It goes along with cp -x, find -x, and others. > > Quick example #1: You have /usr/ports /usr/ports/distfiles as > different mount points it lets you wipe /usr/ports without wiping your > distfile cache. > > Quick example #2: You have /usr/src/ null mounted in every user's > /home/ and you want to wipe one home directory. I just realized that this is a poor example because /usr/src/ is likely read-only, but the idea stands. -- Eitan Adler