diff --git a/README.md b/README.md index cf9d5e7..8aba24f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,46 @@ # DMM - DataManagerMount -Mount your datamanager files into your filesystem +Mount your datamanager files into your filesystem. + +# Prerequisites +1. A linux kernel with FUSE support +2. A compiled [binary](https://github.com/DataManager-Go/DMM---DataManagerMount/releases). +3. A vaild config and session. You can create one using the [cli client](https://github.com/DataManager-Go/DataManagerCLI) + +# Get started +You can mount your dataManager files into your local filesystem using ` mountPoint`. Thats it.
+ +### Opions +`--config` use a different configuration file, created by the [CLI client](https://github.com/DataManager-Go/DataManagerCLI) or [GUI client](https://github.com/DataManager-Go/DataManagerGUI)
+`--debug` view more informations about the client server process
+`--debug-fs` view logs for the mount process
+ +# Mapping +Since the way the datamanager stores your files is different than your Operating Systems fs does, the mapping between Dmanager and your OS filetree isn't that easy.
+The DManager is built to store files assigned to multiple folders (groups) and your FS (usually) allows to store a file in one folder only. In addition, you (usually) can't have multiple files with the same name in one folder.
+The DmanagerFS supports that. This is one of the main differences between Filesystems like ext4 or NTFS and the DataManagerFS.
+ +#### The mapping: +```bash +MountPoint +│ +├── default # The default namespace. Equal to _default +│   ├── all_files # all files in the default namespace +│   │   ├── file_in_group1_and_ns_default +│   │   ├── some other file +│   │   ├── settings.json +│   │   ├── Shortcuts +│   │ ├── settings.json +│   │ └── shareShortcuts +│   ├── group1 # Group 1 +│   │   ├── file_in_group1_and_ns_default +│   │   └── some other file +│   ├── condig_files +│   │   ├── settings.json +│   │   └── Shortcuts +│   └── Projects +│   ├── settings.json +│   └── shareShortcuts +└── androidApps # androidApps namespace +    └── all_files +    └── Whatsapp.apk +``` \ No newline at end of file diff --git a/dmfs/fsGroup.go b/dmfs/fsGroup.go index 602bea1..b498f16 100644 --- a/dmfs/fsGroup.go +++ b/dmfs/fsGroup.go @@ -47,6 +47,7 @@ func newGroupNode(namespace, group string) *groupNode { return groupNode } + func (groupNode *groupNode) getRequestAttributes() libdatamanager.FileAttributes { // Don't send any group to get // all files without groups