A DESCRIPTION OF THE PROBLEM :
implDelete needs to use unlink(2) on files and rmdir(2) on directories. It currently stats the target to determine which to use. Another option would be to unconditionally first try unlink(2) and then fallback to rmdir(2) if unlink fails with ENOTDIR. This saves a syscall for the common case of deleting a file.
implDelete needs to use unlink(2) on files and rmdir(2) on directories. It currently stats the target to determine which to use. Another option would be to unconditionally first try unlink(2) and then fallback to rmdir(2) if unlink fails with ENOTDIR. This saves a syscall for the common case of deleting a file.
- caused by
-
JDK-7006126 (fs) Updates to file system API (1/2011)
-
- Closed
-
- links to
-
Review(master) openjdk/jdk/25107
(3 links to)