Replies: 3 comments 7 replies
-
Beta Was this translation helpful? Give feedback.
-
|
Interested to contribute... |
Beta Was this translation helpful? Give feedback.
-
|
So I tried something and what I don't get with aio is that does it really behave like queue and can I be certain that write will be processed after we read into buffer? Also what would be appropriate number of blocks or total size to queue before queuing another one, since files can be tremendously huge, we don't want to allocate bunch of blocks into memory. And since lets say we would need fork copy anyway because user while copying may decide to edit something or spawn process where nnn goes to sleep, thus blocking copy of next batch, why then not just use plain read/write forked.
Would love to hear from @Hizenberg469 what he had come up with yet, I can't really find his changes anywhere. Asking this whether which approach should be continued. What I tried before using: AIO 7c5e54f (first 2 commits really) Video how it looks for now (I put intentional small blocks and sleep so we can see how it works, since bar doesn't show if file copied fast): asyncio-example.webmAlso wonder if I should do something with #2086 or this is task for external plugin rather. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently
nnnuses thecpandmvcommands to copy and move files. Instead the POSIX Asynchronous I/O framework can be used to achieve the same.For file attributes, functions like fchmod(), fchown(), futimens(), and setxattr() can be used after creating the new file to set its attributes to match the source file.
Beta Was this translation helpful? Give feedback.
All reactions