req: New feature to rm? Remove file by the inode number
Julien Gabel
jpeg at thilelli.net
Thu May 5 09:55:37 PDT 2005
>> 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.
More information about the freebsd-hackers
mailing list