1 | | As far as I know the directories "." and ".." are always virtual, that is you should not find these directory names on the disk but they should be "created" and managed and reported back by the IFS.[[BR]] |
2 | | The "." is the current directory, that is if the IFS gets a CHANGE_DIR request with this target directory, it should return with NO_ERROR and keep the current working directory. If the IFS is supposed to report all subdirectories of a directory, it also has to report back a "." and ".." subdirectory.[[BR]] |
3 | | The ".." directory is the parent directory. If the IFS gets a CHANGE_DIR request with this target directory, it needs to "shorten" the existing current working directory by the name of the lowest level subdirectory in order to move up a directory level.[[BR]] |
4 | | If you look at a JFS formatted partition you will see that directories "." and ".." exist in every directory, even the root directory. I guess for a CHANGE_DIR request on ".." in the root directory, the IFS should report an error "DIRECTORY_DOES_NOT_EXIST" and keep the current working directory.[[BR]] |
5 | | [[BR]] |
| 1 | As far as I know the directories "." and ".." are always virtual, that is you should not find these directory names on the disk but they should be "created" and managed and reported back by the IFS.[[BR]][[BR]] |
| 2 | |
| 3 | The "." is the current directory, that is if the IFS gets a CHANGE_DIR request with this target directory, it should return with NO_ERROR and keep the current working directory.[[BR]][[BR]] |
| 4 | |
| 5 | The ".." directory is the parent directory. If the IFS gets a CHANGE_DIR request with this target directory, it needs to "shorten" the existing current working directory by the name of the lowest level subdirectory in order to move up a directory level.[[BR]][[BR]] |
| 6 | |
| 7 | If the IFS is requested to report all (files and) subdirectories of a directory (DosFindFirst/DosFindNext), it also has to report back a "." and ".." subdirectory.[[BR]][[BR]] |
| 8 | |
| 9 | If you look at a JFS formatted partition you will see that directories "." and ".." exist in every directory, even the root directory. I guess for a CHANGE_DIR request on ".." in the root directory, the IFS should report an error "DIRECTORY_DOES_NOT_EXIST" and keep the current working directory. |
| 10 | [[BR]][[BR]] |
| 11 | |