camlistore.org: camlistore.org/pkg/blobserver/diskpacked Index | Files

package diskpacked

import "camlistore.org/pkg/blobserver/diskpacked"

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"
     }
},

Index

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 31 packages. Updated 2018-01-06. Refresh now. Tools for package owners.