Comments (1)
Greyhole works on each file operation (executed on Samba) in sequence, using a queue system (operations get queued in /var/spool/greyhole
first, then are moved into the tasks
table in MySQL). So if you create fileA
, then fileB
, then rename fileA
to fileB
, it will work through those operations in the same order. It will never work on multiple file operations in parallel, because the order is very important.
fsck is different because it doesn't know about operations, it only knows about which files exist now. So if it finds a file that isn't where it should be, it will handle it as best as possible.
For fsck runs, the order in which folders & files are checked is undefined. I think it uses PHP's glob()
function to walk through folders & files, which I think returns results sorted alphabetically.
For file copies specifically, there is a config named parallel_copying
, which is true
by default, which will use some cat | tee
sorcery to create multiple files in parallel. This is used for normal processing by the daemon, and during fsck (as needed).
You can see parallel copying being used in the logs, which will appear as INFO write: Copying X.XXX KB file to: /mnt/hdd5/gh/ShareName/Folder/SomeFile, /mnt/hdd3/gh/ShareName/Folder/SomeFile
, which lists all file copies being created simultaneously. (Of note: parallel copying logs the temporary filenames used to transfer; once the transfer completes, it will rename those temporary files using the real filename.)
from greyhole.
Related Issues (20)
- Error: failed to initialize Greyhole database HOT 2
- Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). HOT 5
- Greyhole slow when transferring things via Radarr/Sonarr etc. HOT 3
- greyhole timezone=-13:00 vs ubuntu 18 (mysql 5.7) HOT 2
- MySQL server has gone away HOT 2
- No access to files from shares. HOT 11
- Change fsck cron timing HOT 1
- Debian 12, samba 4.17 and VFS not building HOT 2
- VFS errors HOT 9
- logrotate is already installed HOT 6
- daemon: Greyhole VFS module warning HOT 2
- Greyhole won't start after update - SQL error Can't DROP 'uniqness'; HOT 4
- Makefile error Samba 4.18.6 HOT 5
- DEBUG read_smb_spool: Directory created: / WARN read_smb_spool: Failed to create directory HOT 1
- Can't add drive to drive selection group! HOT 16
- Ownership of share-folders inside gh folder HOT 6
- Accidentally Copied Lots of Small Files - Recovering from a Blown Out log and Spool. HOT 5
- Failed file copy (using rename) HOT 3
- No Files shown after reinstall Greyhole HOT 10
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 greyhole.