Is it possible to limit the size of a local storage?

From @Mithgol on Tue Sep 15 2015 11:45:15 GMT+0000 (UTC)

A local storage is naturally limited by the size of the physical disk drive it resides on. However, an end user may want to limit it further. The limit may include (or not include) the collective size of pinned media (ipfs pin).


Copied from original issue: https://github.com/ipfs/faq/issues/34

From @jbenet on Tue Sep 15 2015 23:10:14 GMT+0000 (UTC)

Yes, this will merge soon in go-ipfs.

From @RichardLitt on Mon May 02 2016 18:59:02 GMT+0000 (UTC)

@whyrusleeping Has this been merged?

From @Wallacoloo on Sun May 22 2016 22:58:18 GMT+0000 (UTC)

@RichardLitt AFAICT you just set DataStore/StorageMax inside of ~/.ipfs/config to whatever you want your limit to be. The default appears to currently be 10 GB.

From @lgierth on Sun May 22 2016 23:02:41 GMT+0000 (UTC)

The Datastore.StorageMax setting does not limit how much diskspace the datastore can use. It’s used only by the GC, together with Datastore.GCWatermark, to determine whether or not to run GC.

From @lgierth on Sun May 22 2016 23:04:11 GMT+0000 (UTC)

> @whyrusleeping Has this been merged?

I don’t think this ever took off. It will very likely come with the “constrainted environments” effort.

From @Wallacoloo on Sun May 22 2016 23:13:13 GMT+0000 (UTC)

@lgierth Hopefully not off-topic for this issue, but is there any place where the various config options are documented? There’s this, but it’s pretty lacking.

From @icf20 on Sun Jun 05 2016 09:23:04 GMT+0000 (UTC)

is there any update about this ?