Creating a collection with v2.4.9 of the shell silently ignores the {usePowerOf2Sizes:false} option supplied to createCollection(). The following output was taken from the same instance of the server:
Shell v.2.4.9:
MongoDB shell version: 2.4.9
connecting to: test
Server has startup warnings:
2014-02-10T10:27:50.105-0800 [initandlisten]
2014-02-10T10:27:50.105-0800 [initandlisten] ** NOTE: This is a development version (2.5.6-pre-) of MongoDB.
2014-02-10T10:27:50.105-0800 [initandlisten] ** Not recommended for production.
2014-02-10T10:27:50.105-0800 [initandlisten]
2014-02-10T10:27:50.105-0800 [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
2014-02-10T10:27:50.106-0800 [initandlisten]
> db.createCollection("v249Shell", {usePowerOf2Sizes:false})
{ "ok" : 1 }
> db.v249Shell.stats().userFlags
1
Shell v2.5.6-pre (2/3/14, git hash b4f14a19abc1de619f94676cfaf0611099959be5):
MongoDB shell version: 2.5.6-pre-
connecting to: test
Server has startup warnings:
2014-02-10T10:27:50.105-0800 [initandlisten]
2014-02-10T10:27:50.105-0800 [initandlisten] ** NOTE: This is a development version (2.5.6-pre-) of MongoDB.
2014-02-10T10:27:50.105-0800 [initandlisten] ** Not recommended for production.
2014-02-10T10:27:50.105-0800 [initandlisten]
2014-02-10T10:27:50.105-0800 [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
2014-02-10T10:27:50.106-0800 [initandlisten]
> db.createCollection("v256Shell", {usePowerOf2Sizes:false})
{ "ok" : 1 }
> db.v256Shell.stats().userFlags
0
>