redoxfs: migrate patches to local fork, switch recipe to path source
This commit is contained in:
+1
-1
Submodule local/sources/redoxfs updated: e6be9134d8...7387e45ffb
@@ -1,17 +0,0 @@
|
||||
diff --git a/src/disk/file.rs b/src/disk/file.rs
|
||||
index 78d51bc..f923d72 100644
|
||||
--- a/src/disk/file.rs
|
||||
+++ b/src/disk/file.rs
|
||||
@@ -43,10 +43,12 @@ impl<T> ResultExt for std::io::Result<T> {
|
||||
|
||||
impl DiskFile {
|
||||
pub fn open(path: impl AsRef<Path>) -> Result<DiskFile> {
|
||||
+ let path = path.as_ref();
|
||||
let file = OpenOptions::new()
|
||||
.read(true)
|
||||
.write(true)
|
||||
.open(path)
|
||||
+ .or_else(|_| OpenOptions::new().read(true).open(path))
|
||||
.or_eio()?;
|
||||
Ok(DiskFile { file })
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
[source]
|
||||
git = "https://gitlab.redox-os.org/redox-os/redoxfs.git"
|
||||
patches = ["P2-readonly-live-media-open.patch"]
|
||||
path = "../../../local/sources/redoxfs"
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
|
||||
Reference in New Issue
Block a user