Changeset c7cd3f3 in trunk
- Timestamp:
- 2009-01-10T02:37:36Z (17 years ago)
- Branches:
- master
- Children:
- 167742c
- Parents:
- cc9a6e14
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/allmydata/storage.py ¶
rcc9a6e14 rc7cd3f3 796 796 implements(RIStorageServer, IStatsProducer) 797 797 name = 'storage' 798 VERSION = { "http://allmydata.org/tahoe/protocols/storage/v1" :799 { "maximum-immutable-share-size": 2**32 },800 "application-version": str(allmydata.__version__),801 }802 798 803 799 def __init__(self, storedir, reserved_space=0, … … 959 955 960 956 def remote_get_version(self): 961 return self.VERSION 957 remaining_space = self.get_available_space() 958 if remaining_space is None: 959 # we're on a platform that doesn't have 'df', so make a vague 960 # guess. 961 remaining_space = 2**64 962 version = { "http://allmydata.org/tahoe/protocols/storage/v1" : 963 { "maximum-immutable-share-size": remaining_space }, 964 "application-version": str(allmydata.__version__), 965 } 966 return version 962 967 963 968 def remote_allocate_buckets(self, storage_index,
Note: See TracChangeset
for help on using the changeset viewer.