}
func (vs *unixVolumeAdder) Set(value string) error {
- if trashLifetime <= 0 {
- log.Print("Missing required configuration parameter: trash-lifetime")
- //return ErrNotImplemented
+ if trashLifetime != 0 {
+ return ErrNotImplemented
}
if dirs := strings.Split(value, ","); len(dirs) > 1 {
log.Print("DEPRECATED: using comma-separated volume list.")
if v.readonly {
return MethodDisabledError
}
+ if trashLifetime != 0 {
+ return ErrNotImplemented
+ }
if v.locker != nil {
v.locker.Lock()
defer v.locker.Unlock()
// Untrash moves block from trash back into store
// TBD
func (v *UnixVolume) Untrash(loc string) error {
- return nil
+ return ErrNotImplemented
}
// blockDir returns the fully qualified directory name for the directory