Thread: filesystem tree - finding ancestors based on inodes

  1. #1
    Registered User
    Join Date
    Nov 2015
    Posts
    4

    filesystem tree - finding ancestors based on inodes

    Hi All,Given the following hierarchy:/dir1/dir2/dir3/dir4/dir5/file/dir6/dir7/other_fileand assuming I know the inode numbers of all of them, how can I determine that file has as ancestor dir1, dir4 has as ancestor dir1, and file is on a different path than dir7 (neither has the other one as ancestor)?Thanks for your advice,SxN

  2. #2
    Registered User
    Join Date
    Nov 2015
    Posts
    4
    sorry, I'm missing new lines (new on this forum). Not sure how to put them, so /dir1/dir2/dir3/dir4/dir5/file /dir6/dir7/other_file hope it makes it clear

  3. #3
    Registered User
    Join Date
    Nov 2015
    Posts
    4
    after "file", before "/dir6" there is my newline
    maybe html breaks?

  4. #4
    Registered User
    Join Date
    Nov 2015
    Posts
    4
    Hi All,

    HTML breaks work!!

    Given the following hierarchy:

    /dir1/dir2/dir3/dir4/dir5/file
    /dir6/dir7/other_file

    and assuming I know the inode numbers of all of them, how can I determine that file has as ancestor dir1, dir4 has as ancestor dir1, and file is on a different path than dir7 (neither has the other one as ancestor)?

    Thanks for your advice,
    SxN

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Were your ancestors party animals?
    By Sebastiani in forum General Discussions
    Replies: 3
    Last Post: 07-30-2014, 03:46 PM
  2. Trouble Updating Free Inodes Count on Ext2 FS
    By scurtis in forum C Programming
    Replies: 5
    Last Post: 04-19-2010, 07:52 PM
  3. Array based Binary search tree- Searching
    By mrsirpoopsalot in forum C++ Programming
    Replies: 1
    Last Post: 12-07-2009, 12:53 AM
  4. Finding parents in a general tree
    By neandrake in forum C++ Programming
    Replies: 4
    Last Post: 03-22-2005, 08:19 PM
  5. Ancestors
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 11-08-2002, 06:32 PM

Tags for this Thread