From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1O8vnq-0007Ql-P9 for garchives@archives.gentoo.org; Mon, 03 May 2010 13:35:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 380B2E06FE; Mon, 3 May 2010 13:35:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B1CF7E058F for ; Mon, 3 May 2010 13:35:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 47EB31B4173 for ; Mon, 3 May 2010 13:35:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.041 X-Spam-Level: X-Spam-Status: No, score=-3.041 required=5.5 tests=[AWL=-0.442, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iVwFOG70BG0T for ; Mon, 3 May 2010 13:34:53 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id 3DC371B40D4 for ; Mon, 3 May 2010 13:34:51 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1O8vnH-0004b9-F4 for gentoo-dev@gentoo.org; Mon, 03 May 2010 15:34:43 +0200 Received: from liten.csbnet.se ([95.80.45.96]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 May 2010 15:34:43 +0200 Received: from xake by liten.csbnet.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 May 2010 15:34:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org connect(): No such file or directory From: Peter Hjalmarsson Subject: [gentoo-dev] Re: [RFC][NEW] Utility to find orphaned files Date: Mon, 03 May 2010 15:34:35 +0200 Message-ID: <1272893675.19261.16.camel@lillen> References: <4BD42501.9070505@gentoo.org> <4BD446EC.2070809@gentoo.org> <20100430162415.GA492@nibiru.local> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: liten.csbnet.se In-Reply-To: <20100430162415.GA492@nibiru.local> X-Mailer: Evolution 2.30.0.1 X-Archives-Salt: 76cfaa95-8364-4c1b-9ac6-dbc27012ab96 X-Archives-Hash: 0b0cd3e2afa6cfabaac38e15c04e3db8 fre 2010-04-30 klockan 18:24 +0200 skrev Enrico Weigelt: > * Daniel Pielmeier schrieb: >=20 > > What about searching the complete file system but using an exclude file= where > > you can put directories and files which should not be searched. It is t= edious to > > tell every path on the command-line. Also for instance if you specify /= lib it > > will also search under /lib/modules and I am sure you do not consider a= ll > > contents there as unneeded. >=20 > hmm, perhaps there's some way to assign these files to some package ? > =20 Eh, no and it should not be since files in that directory is kernel modules, and most of the files there is created by "cd /usr/src/linux && make" or genkernel or something alike and it is supposed to be that way. Looking at the contents of that directory is pretty easy to see if a directory there should be left alone or removed (as there is just one directory per kernel. not any longer running a kernel anymore? remove the corresponding dir). It is better to have the script not tuch that directory at all or at most point out "the directory contains directories for more kernels then the currently running (i.e. there is more then one dir) and it is totally THIS big. You may want to take a look if you have files from older kernels that you do not longer need." That would leave up to the user to figure out what kernel modules to keep and what kernel to pount. Or you suggest autocleaning of /boot and /usr/src/linux-* as well? Dangerous!