M gdrivefs/config/__init__.py +1 -0
@@ 1,6 1,7 @@
import os
IS_DEBUG = bool(int(os.environ.get('GD_DEBUG', '0')))
+NO_THREADS = bool(int(os.environ.get('GD_NOTHREADS', '0')))
DO_LOG_FUSE_MESSAGES = bool(int(os.environ.get('GD_DO_LOG_FUSE_MESSAGES', '0')))
DEFAULT_CREDENTIALS_FILEPATH = os.path.expandvars('$HOME/.gdfs/creds')
DEFAULT_RETRIES = int(os.environ.get('GD_RETRIES', '3'))
M gdrivefs/gdfuse.py +2 -0
@@ 826,6 826,8 @@ def mount(auth_storage_filepath, mountpo
if gdrivefs.config.IS_DEBUG is True:
_logger.debug("FUSE options:\n%s", pprint.pformat(fuse_opts))
+ if nothreads:
+ _logger.debug("FUSE is running in single thread mode.")
_logger.debug("PERMS: F=%s E=%s NE=%s",
Conf.get('default_perm_folder'),
M gdrivefs/resources/scripts/gdfs +2 -7
@@ 1,4 1,4 @@
-#!/usr/bin/env python2.7
+#!/usr/bin/env python
import sys
import os.path
@@ 31,11 31,6 @@ def _main():
nargs=1)
p.add_argument(
- '-s', '--singlethread',
- help='Single Thread',
- action='store_true')
-
- p.add_argument(
'-v', '--verbose',
action='store_true',
help='Print logging')
@@ 58,7 53,7 @@ def _main():
auth_storage_filepath=auth_storage_filepath,
mountpoint=args.mountpoint,
debug=gdrivefs.config.IS_DEBUG,
- nothreads=args.singlethread,
+ nothreads=gdrivefs.config.NO_THREADS,
option_string=option_string)
if __name__ == '__main__':
M gdrivefs/resources/scripts/gdfsdumpentry +1 -1
@@ 1,4 1,4 @@
-#!/usr/bin/env python2.7
+#!/usr/bin/env python
import sys
import os.path
M gdrivefs/resources/scripts/gdfstool +2 -2
@@ 1,4 1,4 @@
-#!/usr/bin/env python2.7
+#!/usr/bin/env python
import sys
import os.path
@@ 71,7 71,7 @@ def _handle_mountpoint(args):
auth_storage_filepath=args.auth_storage_file,
mountpoint=args.mountpoint,
debug=gdrivefs.config.IS_DEBUG,
- nothreads=gdrivefs.config.IS_DEBUG,
+ nothreads=gdrivefs.config.NO_THREADS,
option_string=option_string)
def _parser_auth(subparsers):