Re: req: New feature to rm? Remove file by the inode number

From: Julien Gabel (jpeg_at_thilelli.net)
Date: 05/05/05

  • Next message: Halil Demirezen: "Re: req: New feature to rm? Remove file by the inode number"
    Date: Thu, 5 May 2005 18:55:27 +0200 (CEST)
    To: freebsd-hackers@freebsd.org
    
    

    >> 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.
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Halil Demirezen: "Re: req: New feature to rm? Remove file by the inode number"

    Relevant Pages

    • Isolated Base Installation?
      ... which will allow a FUSE File System to read through itself. ... FUSE file systems can be used to make snapshots. ... IBI is a method for preserving the install time ... The basic premise for IBI is that when the system is installed, the root ...
      (Ubuntu)
    • Re: How to set up NFS client for Kerberized access in Solaris
      ... authenticate the root user. ... keytab file instead. ... Setting Up Root Authentication to Mount NFS File Systems ... If users want to access a non-Kerberized NFS file system, ...
      (comp.unix.solaris)
    • fsck fails!
      ... I started getting file system errors so I logged out, ... Group 625's inode table at 20480008 conflicts with some other fs block. ... Restarting e2fsck from the beginning... ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Summary: df -k : discrepancy in the % displayed
      ... The standard file system reserves about 10% of the kbytes for efficiency; ... is unavailable to anyone except root. ... If you created your filesystem with default options, ... This 5% or so reservation is probably not worth bothering with on a 1-2GB ...
      (SunManagers)
    • Re: Saving Objectstore to a WinCE OS device
      ... ANY filesystem can be used. ... It should indicate that this particular registry key is deprecated, ... the registry and mount it as the root and you'll be 80% of the way ... I thought when you mentioned File system that you was refering to ...
      (microsoft.public.windowsce.embedded)