Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 May 2005 18:55:27 +0200 (CEST)
From:      "Julien Gabel" <jpeg@thilelli.net>
To:        freebsd-hackers@freebsd.org
Subject:   Re: req: New feature to rm? Remove file by the inode number
Message-ID:  <64693.192.168.1.20.1115312127.squirrel@webmail.thilelli.net>
In-Reply-To: <20050505163054.27317.qmail@web52709.mail.yahoo.com>
References:  6667 <20050505163054.27317.qmail@web52709.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>> Point 2, likely as not, might explain why there's no
>> simple mechanism for doing this from rm. At the very
>> least you'd have to specify the file system you're
>> referring to, and many "plain" users couldn't do
>> that safely. Those that can are probably able to use
>> find anyway.

> A (device no, inode no) can uniquely identify a file
> -but then it requires the same amt of traversals (from
> the root directory's inode) that any other utility
> does. Im not sure rm can optimize anything that a find
> .. -exec rm {} \; would.

Or "find [...] -print | xargs \rm" to bypass some problem
with a very long list of files to delete.

-- 
-jpeg.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64693.192.168.1.20.1115312127.squirrel>