Browse code

Disable fallocate and set max_file_size to default

- We used to set max_file_size to 10000 to get the functional tests
passing on devstack but this was the wrong way. We are now disabling
fallocate like done in saio to get the large objects test passing.
- Fixes bug 1201077.

Change-Id: I33058352f5abfb06f2a992890cbc7339cedc0ad3

Chmouel Boudjnah authored on 2013/07/16 16:16:07
Showing 1 changed files
... ...
@@ -242,6 +242,9 @@ EOF
242 242
         iniuncomment ${swift_node_config} DEFAULT log_facility
243 243
         iniset ${swift_node_config} DEFAULT log_facility LOG_LOCAL${log_facility}
244 244
 
245
+        iniuncomment ${swift_node_config} DEFAULT disable_fallocate
246
+        iniset ${swift_node_config} DEFAULT disable_fallocate true
247
+
245 248
         iniuncomment ${swift_node_config} DEFAULT mount_check
246 249
         iniset ${swift_node_config} DEFAULT mount_check false
247 250
 
... ...
@@ -286,12 +289,6 @@ EOF
286 286
     iniset ${testfile} func_test account2 swifttenanttest2
287 287
     iniset ${testfile} func_test username2 swiftusertest2
288 288
 
289
-    # Set maximum file size to 10000 bytes or our vm will fill up quickly with
290
-    # the default 5gb size.
291
-    iniuncomment ${testfile} func_test max_file_size
292
-    iniset ${testfile} func_test max_file_size 10000
293
-
294
-
295 289
     if is_service_enabled key;then
296 290
         iniuncomment ${testfile} func_test auth_version
297 291
         iniset ${testfile} func_test auth_host ${KEYSTONE_SERVICE_HOST}