-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
File::lock does not work on Android #148325
Copy link
Copy link
Open
Labels
A-ioArea: `std::io`, `std::fs`, `std::net` and `std::path`Area: `std::io`, `std::fs`, `std::net` and `std::path`O-androidOperating system: AndroidOperating system: AndroidT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-ioArea: `std::io`, `std::fs`, `std::net` and `std::path`Area: `std::io`, `std::fs`, `std::net` and `std::path`O-androidOperating system: AndroidOperating system: AndroidT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Currently, our lock method just always errors on Android.
However, the libc crate does expose
flockon Android, and cargo-bins/cargo-binstall#2330 sounds like there is support forflockon Android withfs4, at least for some Android versions.We should figure out which Android versions have
flock, and whether we can use that for the standard library API.(Also see #146312 which is a similar issue for Illumos.)
Cc @chriswailes @maurer @mgeisler @tgross35