What is "sharing filesystem information"?

139 views Asked by At

What's exactly meant by saying "sharing filesystem information"? What is in "filesystem information"?

(This question arose when I saw the CLONE_FS flag in some linux headers)

1

There are 1 answers

6
Brijesh Valera On BEST ANSWER

File system information includes root of the file, current working directory, and the umask (file permission). [Represented in the kernel by struct fs_struct]

So when you will set CLONE_FS flag, child process and parent process will share file system information.

Now, Take an example: a parent is processing some file, and at that time child process has changed working directory then parent will get problems (if relative path specified) because they share same working directory.

Hope you got your answer.