Page MenuHomeFreeBSD

alter path: for linux mkdir, if the folder has been existed in /compat/linux, return EEXIST directly
Needs ReviewPublic

Authored by weike.chen_dell.com on Oct 11 2023, 5:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 11, 11:12 AM
Unknown Object (File)
Fri, Apr 10, 12:12 PM
Unknown Object (File)
Tue, Apr 7, 8:16 PM
Unknown Object (File)
Mon, Apr 6, 11:34 PM
Unknown Object (File)
Sat, Apr 4, 11:51 AM
Unknown Object (File)
Mon, Mar 16, 5:24 AM
Unknown Object (File)
Feb 8 2026, 10:23 PM
Unknown Object (File)
Dec 28 2025, 9:47 PM
Subscribers

Details

Reviewers
dchagin
Group Reviewers
Linux Emulation
linuxkpi
Summary

Linux applications calls 'mkdir' to create folder, if it is existed in /compat/linux, the correct implementation creates it in '/'. This behavior causes the failure for the Linux applications use 'mkdir' to check if the folder is existed or not, but have no permission to create folders in '/'.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped