addftool 0.2.5__py3-none-any.whl → 0.2.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- addftool/blob.py +7 -3
- {addftool-0.2.5.dist-info → addftool-0.2.6.dist-info}/METADATA +1 -1
- {addftool-0.2.5.dist-info → addftool-0.2.6.dist-info}/RECORD +6 -6
- {addftool-0.2.5.dist-info → addftool-0.2.6.dist-info}/WHEEL +0 -0
- {addftool-0.2.5.dist-info → addftool-0.2.6.dist-info}/entry_points.txt +0 -0
- {addftool-0.2.5.dist-info → addftool-0.2.6.dist-info}/top_level.txt +0 -0
addftool/blob.py
CHANGED
|
@@ -101,12 +101,13 @@ def install_main(args):
|
|
|
101
101
|
def mount_main(args):
|
|
102
102
|
sas_token = get_token(args, info=True)
|
|
103
103
|
|
|
104
|
+
cache_gate = 0 if args.no_cache else 1
|
|
104
105
|
template = {
|
|
105
106
|
'logging': {'type': 'silent', 'level': 'log_off'},
|
|
106
107
|
'components': ['libfuse', 'file_cache', 'attr_cache', 'azstorage'],
|
|
107
|
-
'libfuse': {'attribute-expiration-sec': 120, 'entry-expiration-sec': 120, 'negative-entry-expiration-sec': 240},
|
|
108
|
-
'file_cache': {'path': '', 'timeout-sec': 120, 'max-size-mb': 1024 * int(args.file_cache_size)},
|
|
109
|
-
'attr_cache': {'timeout-sec': 7200},
|
|
108
|
+
'libfuse': {'attribute-expiration-sec': 120 * cache_gate, 'entry-expiration-sec': 120 * cache_gate, 'negative-entry-expiration-sec': 240 * cache_gate},
|
|
109
|
+
'file_cache': {'path': '', 'timeout-sec': 120 * cache_gate, 'max-size-mb': 1024 * int(args.file_cache_size)},
|
|
110
|
+
'attr_cache': {'timeout-sec': 7200 * cache_gate},
|
|
110
111
|
'azstorage': {
|
|
111
112
|
'type': 'block',
|
|
112
113
|
'endpoint': '',
|
|
@@ -145,6 +146,8 @@ def mount_main(args):
|
|
|
145
146
|
print("Create config file: ", temp_config)
|
|
146
147
|
|
|
147
148
|
command = f"blobfuse2 mount {args.mount} --config-file={temp_config}"
|
|
149
|
+
if args.no_cache:
|
|
150
|
+
command += " -o direct_io"
|
|
148
151
|
if args.allow_other:
|
|
149
152
|
command += " --allow-other"
|
|
150
153
|
# to avoid "Error: fusermount3: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf"
|
|
@@ -235,6 +238,7 @@ def add_args(parser):
|
|
|
235
238
|
mount_parser.add_argument("-o", "--allow-other", help="allow other", action="store_true", default=False)
|
|
236
239
|
mount_parser.add_argument("--file-cache-size", help="file cache size (GB)", default=256)
|
|
237
240
|
mount_parser.add_argument("--sudo", help="sudo", action="store_true")
|
|
241
|
+
mount_parser.add_argument("--no_cache", help="no cache", action="store_true")
|
|
238
242
|
|
|
239
243
|
token_parser = subparsers.add_parser('token', help='Token help')
|
|
240
244
|
add_api(token_parser)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
addftool/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
addftool/addf_portal.py,sha256=6XjwGs5m2mRVDWVvCPOiqn1NlxDcGBTQ9Kr_0g5RsJc,1130
|
|
3
|
-
addftool/blob.py,sha256=
|
|
3
|
+
addftool/blob.py,sha256=y1HZaDBUNeXicVytvwpRXwufvvrgxR33ruBlYpxnSa4,9453
|
|
4
4
|
addftool/broadcast_folder.py,sha256=X9tvvMT7cCDbfKqE7hUGaFbBOHIecIgD8xcT34Bqb_8,17708
|
|
5
5
|
addftool/sync.py,sha256=ZpYxbM8uiPFrV7ODmOaM7asVPCWaxBixA-arVc-1kfs,14045
|
|
6
6
|
addftool/tool.py,sha256=FmxRY3-pP0_Z0zCUAngjmEMmPUruMftg_iUlB1t2TnQ,2001
|
|
@@ -12,8 +12,8 @@ addftool/deploy/vscode_server.py,sha256=tLtSvlcK2fEOaw6udWt8dNELVhwv9F59hF5DJJ-1
|
|
|
12
12
|
addftool/process/__init__.py,sha256=Dze8OrcyjQlAbPrjE_h8bMi8W4b3OJyZOjTucPrkJvM,3721
|
|
13
13
|
addftool/process/utils.py,sha256=JldxnwanLJOgxaPgmCJh7SeBRaaj5rFxWWxh1hpsvbA,2609
|
|
14
14
|
addftool/ssh/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
-
addftool-0.2.
|
|
16
|
-
addftool-0.2.
|
|
17
|
-
addftool-0.2.
|
|
18
|
-
addftool-0.2.
|
|
19
|
-
addftool-0.2.
|
|
15
|
+
addftool-0.2.6.dist-info/METADATA,sha256=CpZiyO1Tfsuy53kGEJbCAKk0s9PBYvtVMynKEHQWZnE,170
|
|
16
|
+
addftool-0.2.6.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
|
17
|
+
addftool-0.2.6.dist-info/entry_points.txt,sha256=9lkmuWMInwUAtev8w8poNkNd7iML9Bjd5CBCFVxg2b8,111
|
|
18
|
+
addftool-0.2.6.dist-info/top_level.txt,sha256=jqj56-plrBbyzY0tIxB6wPzjAA8kte4hUlajyyQygN4,9
|
|
19
|
+
addftool-0.2.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|