This is the question faced by me in recent interview.
Can anyone explain me, what could be difference between a directory and a filesystem?
My answer was,
1. Directory can be created inside a filesystem but we can't able to create a filesystem in directory.
2. We can mount the filesystem but we can't mount the directory.
My interviewer is not convinced by my reply.
Please give your valuable thoughts.
Looking forward to have response.
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
2 replies Latest Post - 2012-05-04T13:31:49Z by orphy
Pinned topic What could be the difference between a directory and a filesystem?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-05-04T13:31:49Z at 2012-05-04T13:31:49Z by orphy
Tibor_B 270004NWQ341 PostsACCEPTED ANSWER
Re: What could be the difference between a directory and a filesystem?2012-05-04T11:53:19Z in response to shibhikkiranI am not sure of your point 2, directory might be mounted, f.e. via NFS...
couple of differences from my head:
filesystem is located on a piece of physical memory, has its fixed size, directory is just a file that contains information on files and sub-directories...
Data in one filesystem do not 'compete' for disk space with data in other filesystems....
filesystem can be unmounted and mounted to other server...