Comments (7)
That are awesome news and a reason to change .NET 6 to 7 on my Synology box. Thanks for the information!
from copyonwrite.
If it's possible to do, we should do it in File.Copy itself. dotnet/runtime#79243 (comment)
from copyonwrite.
Sure, see the Microsoft.Build.CopyOnWrite SDK which copies the Copy task code and adds in this library. Extend this library to all OSes and make use of it in Copy task in MSBuild.
from copyonwrite.
I was very happy to find this library and after reading the Readme I was sure it will work but then I run into this exception on Linux.
Exception has occurred: CLR/System.NotImplementedException
Exception thrown: 'System.NotImplementedException' in CopyOnWrite.dll: 'The method or operation is not implemented.'
at Microsoft.CopyOnWrite.Linux.LinuxCopyOnWriteFilesystem.CopyOnWriteLinkSupportedInDirectoryTree(String rootDirectory, Boolean pathIsFullyResolved)
If the library does not have Linux support yet, it should be documented up-front.
@danmoseley adding the COW feature to File.Copy was even better as this was the first place I was checking for COW support.
from copyonwrite.
Added a note in README about the missing support.
from copyonwrite.
On Linux, you should just pass through to the BCL implementation of File.Copy()
. It is copy-on-write enlightened since .NET 7: dotnet/runtime#64264.
from copyonwrite.
Related Issues (11)
- Failures on Windows when running in parallel HOT 4
- Create Mac implementation HOT 3
- ReFS parallel file cloning silent failure bug HOT 1
- DestinationMustMatchSourceSparseness flag not working, block-cloned file is always sparsed
- (Windows) On crash a partially cloned file will remain
- Memory corruption on CloneFile in Windows x86 HOT 2
- BSOD caused when copying to an alternative data stream HOT 15
- Stress test break reading content back from ReFS CoW link HOT 1
- Test break on lack of expected failure for exceeding Windows clone max
- Create clone using shadow copy?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from copyonwrite.