nicokoch / reflink Goto Github PK
View Code? Open in Web Editor NEWCross-platform(!) COW reflink copy of files
Cross-platform(!) COW reflink copy of files
unfriend% cargo build --target=x86_64-unknown-linux-musl
Compiling reflink v0.1.3
error[E0308]: mismatched types
--> /home/faux/.cargo/registry/src/github.com-1ecc6299db9ec823/reflink-0.1.3/src/sys/unix.rs:21:39
|
21 | libc::ioctl(dest.as_raw_fd(), IOCTL_FICLONE, src.as_raw_fd())
| ^^^^^^^^^^^^^ expected i32, found u64
I happen to be on rustc 1.36.0-nightly (dec4c5201 2019-05-24)
, Ubuntu x64 host.
Is only compile-tested at the moment
this lib is good but I can not build it since I do not have VS, it will be great if you build one and put it in the release
See microsoft/CopyOnWrite#3 where creating clones can return success but the file is all zeroes (i.e. region clone did not actually take effect). PR in which I added serialization based on source path to make things fully stable: microsoft/CopyOnWrite#6
I don't have a solution for this. Working on filing an issue with Windows team but any fix would be a long time coming.
error[E0308]: mismatched types
--> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/reflink-0.1.3/src/sys/unix.rs:21:39
|
21 | libc::ioctl(dest.as_raw_fd(), IOCTL_FICLONE, src.as_raw_fd())
| ----------- ^^^^^^^^^^^^^ expected `i32`, found `u64`
| |
| arguments to this function are incorrect
|
note: function defined here
--> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.144/src/unix/linux_like/linux/musl/mod.rs:739:12
|
739 | pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int;
| ^^^^^
help: you can convert a `u64` to an `i32` and panic if the converted value doesn't fit
|
21 | libc::ioctl(dest.as_raw_fd(), IOCTL_FICLONE.try_into().unwrap(), src.as_raw_fd())
| ++++++++++++++++++++
For more information about this error, try `rustc --explain E0308`.
error: could not compile `reflink` due to previous error
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.