Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156712818
D42154.id128540.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
674 B
Referenced Files
None
Subscribers
None
D42154.id128540.diff
View Options
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c
--- a/sys/kern/vfs_lookup.c
+++ b/sys/kern/vfs_lookup.c
@@ -636,11 +636,15 @@
case CACHE_FPL_STATUS_HANDLED:
if (error == 0)
NDVALIDATE(ndp);
- else if (__predict_false(pwd->pwd_adir != pwd->pwd_rdir &&
- (cnp->cn_flags & ISRESTARTED) == 0)) {
- namei_cleanup_cnp(cnp);
- NDRESTART(ndp);
- goto restart;
+ else if (__predict_false(pwd->pwd_adir != pwd->pwd_rdir)) {
+ if (error == EEXIST)
+ return error;
+
+ if((cnp->cn_flags & ISRESTARTED) == 0) {
+ namei_cleanup_cnp(cnp);
+ NDRESTART(ndp);
+ goto restart;
+ }
}
return (error);
case CACHE_FPL_STATUS_PARTIAL:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 8:32 PM (8 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33150998
Default Alt Text
D42154.id128540.diff (674 B)
Attached To
Mode
D42154: alter path: for linux mkdir, if the folder has been existed in /compat/linux, return EEXIST directly
Attached
Detach File
Event Timeline
Log In to Comment