*nix discovery

Discussion in 'Linux, BSD and Other OS's' started by donkey42, May 9, 2008.

  1. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    this may not seem very substantial but it really is:

    basically i was working on a file with a program & accidentally i renamed the output file while doing some partitioning at the same time & the output file size continued increase (surprisingly)

    *nix seems to have an internal database for ongoing tasks and the output filename of a process in operation is contained within a database field & if you change a field (filename) it will only change the field in the database and not the actual filename like Windoze, but the renamed file retains the filename it was last changed to by extracting it from the database

    this alone is worth moving from Windoze

    is my interpretation correct ?
     
  2. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    Let me get this straight. You opened a file in an application, renamed the file and the application continued to work on the file correctly?

    The explanation would be that the program uses a file pointer to an inode on the file system, and renaming the file does not change the inode so the pointer continues to be valid.
     
  3. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    no, i was legally backing up a badly scratched DVD, because it will fail soon & the output file of Acidrip was accidentally renamed by me, but, the new file / filename size was still increasing after the file was renamed

    BTW: i wait until a DVD is badly scratched & still works until i back it up, & when the scratched DVD fails i destroy the original DVD before i write the backup to a disc[ot]:halo:[/ot]
     
  4. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    No matter, that's basically the same thing as what I was describing. I think this would also happen in Windows.
     

Share This Page