Loading ...
Sorry, an error occurred while loading the content.

Re: Comparing file names

Expand Messages
  • Matthew Winn
    On Mon, 25 Aug 2008 16:39:12 -0400, James Vega ... The same device number and inode number, to be precise. -- Matthew Winn
    Message 1 of 7 , Aug 26, 2008
    • 0 Attachment
      On Mon, 25 Aug 2008 16:39:12 -0400, "James Vega"
      <jamessan@...> wrote:

      > On Mon, Aug 25, 2008 at 4:21 PM, Tony Mechelynck
      > <antoine.mechelynck@...> wrote:
      > >
      > > The question is not to determine which other files, if any, are
      > > hardlinked to a specific file (which might require scanning all
      > > directories on the whole partition the way some disk integrity checking
      > > programs do), it is just to determine whether two given pathfilenames
      > > point to the same disk area (which ought to require only a comparison of
      > > "where their directory entries point to").
      >
      > Which is simply a subset of my general statement in my previous email.
      > There is no way to determine this simply from pathnames. In fact, the
      > only way to determine this, at least under Linux, is to check whether
      > they have the same inode. I'm not sure how you would do so for other
      > OSes.

      The same device number and inode number, to be precise.

      --
      Matthew Winn

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_dev" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.