Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service file for the filesystem monitor #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

iivanou
Copy link
Contributor

@iivanou iivanou commented Sep 7, 2017

Template of a service file in LSB format.

@iivanou iivanou force-pushed the fsmonitor_service branch 2 times, most recently from b2848fa to 53ec35d Compare September 7, 2017 13:32
Copy link
Contributor

@AndreiPashkin AndreiPashkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the file in LSB format?

@iivanou
Copy link
Contributor Author

iivanou commented Sep 11, 2017

The fsmonitor file is one you are looking for. This script supports all necessary actions. See below:
http://refspecs.linuxbase.org/LSB_3.0.0/LSB-PDA/LSB-PDA/iniscrptact.html
A systemd service file will be created once we are ready to provide any kind of a packed application.

@iivanou iivanou force-pushed the fsmonitor_service branch 3 times, most recently from f8bc290 to bba542f Compare October 9, 2017 17:12
1. Add test for copy(recursive) events
2. Add test for move events
3. We are hanlding only importnant events now
4. Replace move events with necessary ones
5. Reorginize tests for the monitor funtionality
6. Add necessary attributes to the Event class to match protobuf entity
7. Add new protobuf entities: is_dir, is_deleted
8. Generate new DTO for new entities
@@ -16,6 +16,8 @@ import "onedrive_client/entities/onedrive.proto";
message LocalItemMetadata {
uint64 size = 1;
uint64 modified = 2;
bool is_dir = 3;
bool is_deleted = 4;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is_deleted definitely must be in DirtyLocalItem, because DirtyLocalItem reflects a change event (which includes deletion).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants