Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Nov 2011 15:29:10 +0000
From:      Chris Rees <crees@freebsd.org>
To:        Alexander Best <arundel@freebsd.org>
Cc:        "freebsd-fs@freebsd.org" <freebsd-fs@freebsd.org>, Ivan Voras <ivoras@freebsd.org>
Subject:   Re: Default inode number too low in FFS nowadays?
Message-ID:  <CADLo83-sTOpfjLDT2gFa9vyvh%2Bw8OVfq-ADm8jar49YzQknjPw@mail.gmail.com>
In-Reply-To: <20111104141626.GA28925@freebsd.org>
References:  <B888842A-7DB4-491B-93E3-A376745019F5@sarenet.es> <j8u2af$chv$1@dough.gmane.org> <5C156A63-D86D-4C1B-AFC4-DC5EA09494F6@xerq.net> <4EB3C63F.2060805@quip.cz> <20111104141626.GA28925@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4 November 2011 14:16, Alexander Best <arundel@freebsd.org> wrote:
> On Fri Nov =A04 11, Miroslav Lachman wrote:
>> Matt Connor wrote:
>> >
>> >On Nov 3, 2011, at 5:43 AM, Ivan Voras<ivoras@freebsd.org> =A0wrote:
>> >
>> >>On 02/11/2011 12:57, Borja Marcos wrote:
>>
>> [...]
>>
>> >>Did you forget to do "make clean" after "make install" on several larg=
e
>> >>ports?
>> >>
>> >>But yes, the ports tree is getting a bit unwieldy. On the other hand,
>> >>did you fsck the file system lately?
>> >>
>> >
>> >cd /usr/ports/ports-mgmt/portupgrade&& =A0make install clean
>> >
>> >portsclean -CD
>> >
>> >That's a quick way to clean out all the clutter.
>>
>> Installing ruby and portupgrade is really big overhead to simple task,
>> which can be done by:
>>
>> cd /usr/ports && make clean
>>
>> or with find:
>>
>> find /usr/ports/ -depth 3 -name "work" -exec rm -r {} +
>
> ...or with 'rm -rf /usr/ports/*/*/work'
>

I almost had the strength of mind to stay out of this....

BUT you could well run into argument list too long issues there
(considering the insane number of inodes used), so you're probably
better off getting around that using the builtin echo:

# echo /usr/ports/*/*/work | xargs rm -r

Since you're doing stuff like that, find is probably more appropriate.

Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo83-sTOpfjLDT2gFa9vyvh%2Bw8OVfq-ADm8jar49YzQknjPw>