Page MenuHomeFreeBSD

devfs: Remove devfs_pathpath
AbandonedPublic

Authored by manu on Dec 6 2017, 1:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 3:47 AM
Unknown Object (File)
Sep 15 2023, 3:44 PM
Unknown Object (File)
Aug 22 2023, 4:39 AM
Unknown Object (File)
Jun 28 2023, 1:59 AM
Unknown Object (File)
May 20 2023, 6:35 PM
Unknown Object (File)
May 6 2023, 5:08 AM
Unknown Object (File)
Dec 20 2022, 2:23 AM
Unknown Object (File)
Dec 20 2022, 1:06 AM
Subscribers

Details

Reviewers
kib
pfg
bapt
Summary

devfs_pathpath test if the new device name will conflict with an existing
device name or directory.
Instead of using this, register every directory in devfs_dir and simply
strcmp the device we want to add with existing devices and directories.

Sponsored-By: Gandi.net
MFC After: 1 month

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

sys/fs/devfs/devfs_devs.c
591

This is too late, adding the intermediate directories path into the global registry at the populate_loop() allows for two conflicting types of the same name to be created.

593

This line must be merged with the previous line, according to style(9).

706

There are many whitespace changes unrelated to the patch' subject.

sys/fs/devfs/devfs_devs.c
591

Ah yes I see that now, I'll see what I can do.

706

Yes sorry, I did some whitespace cleanup at the same time, I'll commit those non-functional changes and rebase this diff.

No plan to update this anymore.