Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support starting from an openat root #136

Closed
Ekleog opened this issue May 10, 2020 · 1 comment
Closed

Support starting from an openat root #136

Ekleog opened this issue May 10, 2020 · 1 comment

Comments

@Ekleog
Copy link

Ekleog commented May 10, 2020

Hello,

I'm writing a long-lived SMTP server daemon (https://github.com/Ekleog/yuubind if you're interested, most information is in the mdbook).

As such, I start the daemon with openat on the queue directory. And then, I do all of the handling relative to this openat, so as to avoid any mounting changes disrupting the operation.

However, walkdir works only by taking in a full Path. Do you think it'd make sense to provide an API that takes in an openat::Dir (from the openat crate) -- or just a RawFd -- and walks the directory starting from this openat?

I see that #23 mentions openat (though more as a bugfix than as an additional feature), so I guess this would probably be blocked on #23 being solved so that the basic infrastructure of openat be present.

How would you feel about such a change?

@BurntSushi
Copy link
Owner

Yes, I consider this a dupe of #23. The API isn't too much of a concern. Building the infrastructure to support it is. I still haven't made up my mind on whether I will continue down that path. See #120 for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants