Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

My colleagues and I are developing a project in which users can import various multimedia files, and then the files must be processed. The project system deploys using Vagrant and will be deploying separately for each of the customers on their machines. Vagrant guest is Ubuntu 18.04, and any OS, such as MacOS, Windows or Linux might be a Vagrant host(It depends on the customers). The folder where users import the files is on vagrant host, and the vagrant guest mounts the folder using SSHFS(vagrant-sshfs plugin).

To be sure the files are imported(moved) to the folder correctly and fully, we are using vagrant-fsnotify plugin. It listens to filesystem changes(in the folder) on the Vagrant host and passes notifications about it to the Vagrant guest. So on the Vagrant guest we have inotify events. Also the files can be copied to the Vagrant host folder from some other device, such as USB device, or from another machine trough SMB. A problem is that in a moment when files copy to the folder, the vagrant guest receives incorrect inotify events -> https://github.com/adrienkohlbecker/vagrant-fsnotify/issues/33. the files are at risk to be processed without fully copying or to be unnoticed. Has anybody had similiar problem?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.0k views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...