Index | Files

package diskpacked

import ""

Package diskpacked registers the "diskpacked" blobserver storage type, storing blobs packed together into monolithic data files with an index listing the sizes and offsets of the little blobs within the large files.

Example low-level config:

"/storage/": {
    "handler": "storage-diskpacked",
    "handlerArgs": {
       "path": "/var/camlistore/blobs"


Package Files

dele.go diskpacked.go punch_linux.go reindex.go

func IsDir Uses

func IsDir(dir string) (bool, error)

IsDir reports whether dir is a diskpacked directory.

func New Uses

func New(dir string) (blobserver.Storage, error)

New returns a diskpacked storage implementation, adding blobs to the provided directory. It doesn't delete any existing blob pack files.

func Reindex Uses

func Reindex(root string, overwrite bool, indexConf jsonconfig.Obj) (err error)

Reindex rewrites the index files of the diskpacked .pack files

Package diskpacked imports 30 packages (graph) and is imported by 4 packages. Updated 2019-06-11. Refresh now. Tools for package owners.