Tag Info

New answers tagged

1

The system needs to keep track of the current directory of all processes because otherwise processes couldn't use relative paths for anything (including for example file open or stat, and changing directories — what does chdir("..") mean if you don't track were the process currently sits?). There's also the matter that without tracking that info, the ...


5

I got intrigued myself and did a little digging. At first I thought that's some kind of a side effect, e.g. the node gets 2 links and then the original link is deleted and ctime is more of an accident than a deliberate action. In case it is unclear for someone, the file is represented by an inode which has nothing to do with the name. The inode "knows" how ...


2

A long, long time ago, the command mv oldpath newpath was implemented inside mv.c as link(oldpath, newpath); unlink(newpath); Now we have a system call rename(oldpath, newpath); but apparently it still works the same way, inside the kernel.  This is a conjecture on my part, but it’s based on the fact that one of the failure modes for rename(2) is ...



Top 50 recent answers are included