Mount a google drive with fuse

luis 87d52d2f53 Return ENOSYS if truncate is not 0 7 jaren geleden
src 87d52d2f53 Return ENOSYS if truncate is not 0 7 jaren geleden
.gitignore d6a6e093f0 Fixed truncate issue 7 jaren geleden
Makefile 67aeb24b87 Several changes 7 jaren geleden
README.md d6a6e093f0 Fixed truncate issue 7 jaren geleden
env.sh 7f5835fe3a Added jacobsa/fuse to vendor folder 7 jaren geleden

README.md

GDriveMount

07-05-2017

Mount a google drive in a folder

Usage:

Usage: gdrivemount [options] MOUNTPOINT

Options:
  -d    Run app in background
  -v    Verbose log

Setup Google client secrets:

https://console.developers.google.com/apis/credentials

As of Google drive guidance:

Turn on the Drive API

  1. Use this wizard to create or select a project in the Google Developers Console and automatically turn on the API. Click Continue, then Go to credentials.
  2. On the Add credentials to your project page, click the Cancel button.
  3. At the top of the page, select the OAuth consent screen tab. Select an Email address, enter a Product name if not already set, and click the Save button.
  4. Select the Credentials tab, click the Create credentials button and select OAuth client ID.
  5. Select the application type Other, enter the name "Drive API Quickstart", and click the Create button.
  6. Click OK to dismiss the resulting dialog.
  7. Click the file_download (Download JSON) button to the right of the client ID.

Copy the downloaded JSON file to home directory as:
$HOME/.gdrivemount/client_secret.json

Signals

Signal Action ex
USR1 Refreshes directory tree from google drive killall -USR1 gdrivemount
HUP Perform a GC and shows memory usage Works when its not running in daemon mode killall -HUP gdrivemount

####TODO:

  • Assure concurrency support on inode/handle creation for gdrive
  • Improve caching to refresh and save inodes
  • Reverse package structure instead of gdrivemount/cmd/gdrivemount use this as main package and move logic to subpackage
  • Use cloudmount -t gdrive -o uid, gid MOUNTPOINT and add Support for other cloud services