diff --git a/cmd/format-xl_test.go b/cmd/format-xl_test.go index 8f6f5960d..db283f5ad 100644 --- a/cmd/format-xl_test.go +++ b/cmd/format-xl_test.go @@ -109,13 +109,6 @@ func genFormatXLInvalidXLVersion() []*formatXLV1 { return formatConfigs } -func genFormatFS() *formatXLV1 { - format := &formatXLV1{} - format.Version = formatMetaVersionV1 - format.Format = formatBackendFS - return format -} - // generates a invalid format.json version for XL backend. func genFormatXLInvalidJBODCount() []*formatXLV1 { jbod := make([]string, 7) diff --git a/cmd/fs-v1-helpers.go b/cmd/fs-v1-helpers.go index 1fc9b8c4c..1791a0155 100644 --- a/cmd/fs-v1-helpers.go +++ b/cmd/fs-v1-helpers.go @@ -296,36 +296,6 @@ func fsCreateFile(filePath string, reader io.Reader, buf []byte, fallocSize int6 return bytesWritten, nil } -// Removes uploadID at destination path. -func fsRemoveUploadIDPath(basePath, uploadIDPath string) error { - if basePath == "" || uploadIDPath == "" { - return errors.Trace(errInvalidArgument) - } - if err := checkPathLength(basePath); err != nil { - return errors.Trace(err) - } - if err := checkPathLength(uploadIDPath); err != nil { - return errors.Trace(err) - } - - // List all the entries in uploadID. - entries, err := readDir(uploadIDPath) - if err != nil && err != errFileNotFound { - return errors.Trace(err) - } - - // Delete all the entries obtained from previous readdir. - for _, entryPath := range entries { - err = fsDeleteFile(basePath, pathJoin(uploadIDPath, entryPath)) - if err != nil && err != errFileNotFound { - return errors.Trace(err) - } - } - - fsRemoveDir(uploadIDPath) - return nil -} - // fsFAllocate is similar to Fallocate but provides a convenient // wrapper to handle various operating system specific errors. func fsFAllocate(fd int, offset int64, len int64) (err error) { diff --git a/cmd/fs-v1-multipart.go b/cmd/fs-v1-multipart.go index 2e35d5863..546303717 100644 --- a/cmd/fs-v1-multipart.go +++ b/cmd/fs-v1-multipart.go @@ -35,13 +35,6 @@ import ( "github.com/minio/minio/pkg/hash" ) -const ( - // Expiry duration after which the multipart uploads are deemed stale. - fsMultipartExpiry = time.Hour * 24 * 14 // 2 weeks. - // Cleanup interval when the stale multipart cleanup is initiated. - fsMultipartCleanupInterval = time.Hour * 24 // 24 hrs. -) - // Returns EXPORT/.minio.sys/multipart/SHA256/UPLOADID func (fs *fsObjects) getUploadIDDir(bucket, object, uploadID string) string { return pathJoin(fs.fsPath, minioMetaMultipartBucket, getSHA256Hash([]byte(pathJoin(bucket, object))), uploadID) diff --git a/cmd/fs-v1.go b/cmd/fs-v1.go index f1c2d2426..3a784f3f8 100644 --- a/cmd/fs-v1.go +++ b/cmd/fs-v1.go @@ -799,12 +799,6 @@ func (fs *fsObjects) DeleteObject(bucket, object string) error { return nil } -// list of all errors that can be ignored in tree walk operation in FS -var fsTreeWalkIgnoredErrs = append(baseIgnoredErrs, []error{ - errFileNotFound, - errVolumeNotFound, -}...) - // Returns function "listDir" of the type listDirFunc. // isLeaf - is used by listDir function to check if an entry // is a leaf or non-leaf entry.