| 
									
										
										
										
											2016-10-17 17:10:23 +08:00
										 |  |  | /* | 
					
						
							| 
									
										
										
										
											2019-10-02 04:12:15 +08:00
										 |  |  |  * MinIO Cloud Storage, (C) 2016-2019 MinIO, Inc. | 
					
						
							| 
									
										
										
										
											2016-10-17 17:10:23 +08:00
										 |  |  |  * | 
					
						
							|  |  |  |  * Licensed under the Apache License, Version 2.0 (the "License"); | 
					
						
							|  |  |  |  * you may not use this file except in compliance with the License. | 
					
						
							|  |  |  |  * You may obtain a copy of the License at | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  *     http://www.apache.org/licenses/LICENSE-2.0
 | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Unless required by applicable law or agreed to in writing, software | 
					
						
							|  |  |  |  * distributed under the License is distributed on an "AS IS" BASIS, | 
					
						
							|  |  |  |  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
					
						
							|  |  |  |  * See the License for the specific language governing permissions and | 
					
						
							|  |  |  |  * limitations under the License. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | package cmd | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 06:53:28 +08:00
										 |  |  | import ( | 
					
						
							| 
									
										
										
										
											2018-04-06 06:04:40 +08:00
										 |  |  | 	"context" | 
					
						
							| 
									
										
										
										
											2017-03-05 06:53:28 +08:00
										 |  |  | 	"time" | 
					
						
							| 
									
										
										
										
											2017-11-26 03:58:29 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-15 04:08:51 +08:00
										 |  |  | 	"github.com/minio/minio/pkg/madmin" | 
					
						
							| 
									
										
										
										
											2017-03-05 06:53:28 +08:00
										 |  |  | ) | 
					
						
							| 
									
										
										
										
											2016-10-17 17:10:23 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | // commonTime returns a maximally occurring time from a list of time.
 | 
					
						
							| 
									
										
										
										
											2017-01-18 02:02:58 +08:00
										 |  |  | func commonTime(modTimes []time.Time) (modTime time.Time, count int) { | 
					
						
							| 
									
										
										
										
											2016-10-17 17:10:23 +08:00
										 |  |  | 	var maxima int // Counter for remembering max occurrence of elements.
 | 
					
						
							| 
									
										
										
										
											2020-11-03 09:52:13 +08:00
										 |  |  | 	timeOccurenceMap := make(map[int64]int) | 
					
						
							| 
									
										
										
										
											2016-10-17 17:10:23 +08:00
										 |  |  | 	// Ignore the uuid sentinel and count the rest.
 | 
					
						
							|  |  |  | 	for _, time := range modTimes { | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | 		if time.Equal(timeSentinel) { | 
					
						
							| 
									
										
										
										
											2016-10-17 17:10:23 +08:00
										 |  |  | 			continue | 
					
						
							|  |  |  | 		} | 
					
						
							| 
									
										
										
										
											2020-11-03 09:52:13 +08:00
										 |  |  | 		timeOccurenceMap[time.UnixNano()]++ | 
					
						
							| 
									
										
										
										
											2016-10-17 17:10:23 +08:00
										 |  |  | 	} | 
					
						
							| 
									
										
										
										
											2020-11-03 09:52:13 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-17 17:10:23 +08:00
										 |  |  | 	// Find the common cardinality from previously collected
 | 
					
						
							|  |  |  | 	// occurrences of elements.
 | 
					
						
							| 
									
										
										
										
											2020-11-03 09:52:13 +08:00
										 |  |  | 	for nano, count := range timeOccurenceMap { | 
					
						
							|  |  |  | 		t := time.Unix(0, nano) | 
					
						
							|  |  |  | 		if count > maxima || (count == maxima && t.After(modTime)) { | 
					
						
							| 
									
										
										
										
											2016-10-17 17:10:23 +08:00
										 |  |  | 			maxima = count | 
					
						
							| 
									
										
										
										
											2020-11-03 09:52:13 +08:00
										 |  |  | 			modTime = t | 
					
						
							| 
									
										
										
										
											2016-10-17 17:10:23 +08:00
										 |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2020-11-03 09:52:13 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-17 17:10:23 +08:00
										 |  |  | 	// Return the collected common uuid.
 | 
					
						
							| 
									
										
										
										
											2017-01-18 02:02:58 +08:00
										 |  |  | 	return modTime, maxima | 
					
						
							| 
									
										
										
										
											2016-10-17 17:10:23 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // Beginning of unix time is treated as sentinel value here.
 | 
					
						
							|  |  |  | var timeSentinel = time.Unix(0, 0).UTC() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // Boot modTimes up to disk count, setting the value to time sentinel.
 | 
					
						
							|  |  |  | func bootModtimes(diskCount int) []time.Time { | 
					
						
							|  |  |  | 	modTimes := make([]time.Time, diskCount) | 
					
						
							|  |  |  | 	// Boots up all the modtimes.
 | 
					
						
							|  |  |  | 	for i := range modTimes { | 
					
						
							|  |  |  | 		modTimes[i] = timeSentinel | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return modTimes | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | // Extracts list of times from FileInfo slice and returns, skips
 | 
					
						
							| 
									
										
										
										
											2017-03-05 06:53:28 +08:00
										 |  |  | // slice elements which have errors.
 | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | func listObjectModtimes(partsMetadata []FileInfo, errs []error) (modTimes []time.Time) { | 
					
						
							| 
									
										
										
										
											2016-10-17 17:10:23 +08:00
										 |  |  | 	modTimes = bootModtimes(len(partsMetadata)) | 
					
						
							|  |  |  | 	for index, metadata := range partsMetadata { | 
					
						
							| 
									
										
										
										
											2017-03-05 06:53:28 +08:00
										 |  |  | 		if errs[index] != nil { | 
					
						
							|  |  |  | 			continue | 
					
						
							| 
									
										
										
										
											2016-10-17 17:10:23 +08:00
										 |  |  | 		} | 
					
						
							| 
									
										
										
										
											2017-03-05 06:53:28 +08:00
										 |  |  | 		// Once the file is found, save the uuid saved on disk.
 | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | 		modTimes[index] = metadata.ModTime | 
					
						
							| 
									
										
										
										
											2016-10-17 17:10:23 +08:00
										 |  |  | 	} | 
					
						
							|  |  |  | 	return modTimes | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 06:53:28 +08:00
										 |  |  | // Notes:
 | 
					
						
							|  |  |  | // There are 5 possible states a disk could be in,
 | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | // 1. __online__             - has the latest copy of xl.meta - returned by listOnlineDisks
 | 
					
						
							| 
									
										
										
										
											2017-03-05 06:53:28 +08:00
										 |  |  | //
 | 
					
						
							|  |  |  | // 2. __offline__            - err == errDiskNotFound
 | 
					
						
							|  |  |  | //
 | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | // 3. __availableWithParts__ - has the latest copy of xl.meta and has all
 | 
					
						
							| 
									
										
										
										
											2017-03-05 06:53:28 +08:00
										 |  |  | //                             parts with checksums matching; returned by disksWithAllParts
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // 4. __outdated__           - returned by outDatedDisk, provided []StorageAPI
 | 
					
						
							|  |  |  | //                             returned by diskWithAllParts is passed for latestDisks.
 | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | //    - has an old copy of xl.meta
 | 
					
						
							|  |  |  | //    - doesn't have xl.meta (errFileNotFound)
 | 
					
						
							|  |  |  | //    - has the latest xl.meta but one or more parts are corrupt
 | 
					
						
							| 
									
										
										
										
											2017-03-05 06:53:28 +08:00
										 |  |  | //
 | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | // 5. __missingParts__       - has the latest copy of xl.meta but has some parts
 | 
					
						
							| 
									
										
										
										
											2017-03-05 06:53:28 +08:00
										 |  |  | // missing.  This is identified separately since this may need manual
 | 
					
						
							|  |  |  | // inspection to understand the root cause. E.g, this could be due to
 | 
					
						
							|  |  |  | // backend filesystem corruption.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // listOnlineDisks - returns
 | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | // - a slice of disks where disk having 'older' xl.meta (or nothing)
 | 
					
						
							| 
									
										
										
										
											2017-03-05 06:53:28 +08:00
										 |  |  | // are set to nil.
 | 
					
						
							|  |  |  | // - latest (in time) of the maximally occurring modTime(s).
 | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | func listOnlineDisks(disks []StorageAPI, partsMetadata []FileInfo, errs []error) (onlineDisks []StorageAPI, modTime time.Time) { | 
					
						
							| 
									
										
										
										
											2016-10-17 17:10:23 +08:00
										 |  |  | 	onlineDisks = make([]StorageAPI, len(disks)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	// List all the file commit ids from parts metadata.
 | 
					
						
							|  |  |  | 	modTimes := listObjectModtimes(partsMetadata, errs) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	// Reduce list of UUIDs to a single common value.
 | 
					
						
							| 
									
										
										
										
											2017-01-18 02:02:58 +08:00
										 |  |  | 	modTime, _ = commonTime(modTimes) | 
					
						
							| 
									
										
										
										
											2016-10-17 17:10:23 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	// Create a new online disks slice, which have common uuid.
 | 
					
						
							|  |  |  | 	for index, t := range modTimes { | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | 		if t.Equal(modTime) { | 
					
						
							| 
									
										
										
										
											2016-10-17 17:10:23 +08:00
										 |  |  | 			onlineDisks[index] = disks[index] | 
					
						
							|  |  |  | 		} else { | 
					
						
							|  |  |  | 			onlineDisks[index] = nil | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return onlineDisks, modTime | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | // Returns the latest updated FileInfo files and error in case of failure.
 | 
					
						
							|  |  |  | func getLatestFileInfo(ctx context.Context, partsMetadata []FileInfo, errs []error) (FileInfo, error) { | 
					
						
							| 
									
										
										
										
											2018-07-31 15:23:29 +08:00
										 |  |  | 	// There should be atleast half correct entries, if not return failure
 | 
					
						
							| 
									
										
										
										
											2019-11-20 09:42:27 +08:00
										 |  |  | 	if reducedErr := reduceReadQuorumErrs(ctx, errs, objectOpIgnoredErrs, len(partsMetadata)/2); reducedErr != nil { | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | 		return FileInfo{}, reducedErr | 
					
						
							| 
									
										
										
										
											2018-07-31 15:23:29 +08:00
										 |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-22 19:28:13 +08:00
										 |  |  | 	// List all the file commit ids from parts metadata.
 | 
					
						
							|  |  |  | 	modTimes := listObjectModtimes(partsMetadata, errs) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | 	// Count all latest updated FileInfo values
 | 
					
						
							| 
									
										
										
										
											2017-12-22 19:28:13 +08:00
										 |  |  | 	var count int | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | 	var latestFileInfo FileInfo | 
					
						
							| 
									
										
										
										
											2017-12-22 19:28:13 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	// Reduce list of UUIDs to a single common value - i.e. the last updated Time
 | 
					
						
							|  |  |  | 	modTime, _ := commonTime(modTimes) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | 	// Interate through all the modTimes and count the FileInfo(s) with latest time.
 | 
					
						
							| 
									
										
										
										
											2017-12-22 19:28:13 +08:00
										 |  |  | 	for index, t := range modTimes { | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | 		if t.Equal(modTime) && partsMetadata[index].IsValid() { | 
					
						
							|  |  |  | 			latestFileInfo = partsMetadata[index] | 
					
						
							| 
									
										
										
										
											2017-12-22 19:28:13 +08:00
										 |  |  | 			count++ | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2018-07-31 15:23:29 +08:00
										 |  |  | 	if count < len(partsMetadata)/2 { | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | 		return FileInfo{}, errErasureReadQuorum | 
					
						
							| 
									
										
										
										
											2018-07-31 15:23:29 +08:00
										 |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | 	return latestFileInfo, nil | 
					
						
							| 
									
										
										
										
											2017-12-22 19:28:13 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 06:53:28 +08:00
										 |  |  | // disksWithAllParts - This function needs to be called with
 | 
					
						
							|  |  |  | // []StorageAPI returned by listOnlineDisks. Returns,
 | 
					
						
							| 
									
										
										
										
											2017-09-29 06:57:19 +08:00
										 |  |  | //
 | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | // - disks which have all parts specified in the latest xl.meta.
 | 
					
						
							| 
									
										
										
										
											2017-09-29 06:57:19 +08:00
										 |  |  | //
 | 
					
						
							| 
									
										
										
										
											2018-01-23 06:54:55 +08:00
										 |  |  | // - slice of errors about the state of data files on disk - can have
 | 
					
						
							|  |  |  | //   a not-found error or a hash-mismatch error.
 | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | func disksWithAllParts(ctx context.Context, onlineDisks []StorageAPI, partsMetadata []FileInfo, errs []error, bucket, | 
					
						
							| 
									
										
										
										
											2019-03-15 04:08:51 +08:00
										 |  |  | 	object string, scanMode madmin.HealScanMode) ([]StorageAPI, []error) { | 
					
						
							| 
									
										
										
										
											2017-03-05 06:53:28 +08:00
										 |  |  | 	availableDisks := make([]StorageAPI, len(onlineDisks)) | 
					
						
							| 
									
										
										
										
											2018-01-23 06:54:55 +08:00
										 |  |  | 	dataErrs := make([]error, len(onlineDisks)) | 
					
						
							| 
									
										
										
										
											2017-08-15 09:08:42 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-28 15:10:20 +08:00
										 |  |  | 	inconsistent := 0 | 
					
						
							|  |  |  | 	for i, meta := range partsMetadata { | 
					
						
							|  |  |  | 		if !meta.IsValid() { | 
					
						
							|  |  |  | 			// Since for majority of the cases erasure.Index matches with erasure.Distribution we can
 | 
					
						
							|  |  |  | 			// consider the offline disks as consistent.
 | 
					
						
							|  |  |  | 			continue | 
					
						
							|  |  |  | 		} | 
					
						
							| 
									
										
										
										
											2020-10-29 10:24:01 +08:00
										 |  |  | 		if len(meta.Erasure.Distribution) != len(onlineDisks) { | 
					
						
							|  |  |  | 			// Erasure distribution seems to have lesser
 | 
					
						
							|  |  |  | 			// number of items than number of online disks.
 | 
					
						
							|  |  |  | 			inconsistent++ | 
					
						
							|  |  |  | 			continue | 
					
						
							|  |  |  | 		} | 
					
						
							| 
									
										
										
										
											2020-10-28 15:10:20 +08:00
										 |  |  | 		if meta.Erasure.Distribution[i] != meta.Erasure.Index { | 
					
						
							| 
									
										
										
										
											2020-10-29 10:24:01 +08:00
										 |  |  | 			// Mismatch indexes with distribution order
 | 
					
						
							| 
									
										
										
										
											2020-10-28 15:10:20 +08:00
										 |  |  | 			inconsistent++ | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	erasureDistributionReliable := true | 
					
						
							|  |  |  | 	if inconsistent > len(partsMetadata)/2 { | 
					
						
							|  |  |  | 		// If there are too many inconsistent files, then we can't trust erasure.Distribution (most likely
 | 
					
						
							|  |  |  | 		// because of bugs found in CopyObject/PutObjectTags) https://github.com/minio/minio/pull/10772
 | 
					
						
							|  |  |  | 		erasureDistributionReliable = false | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-29 06:57:19 +08:00
										 |  |  | 	for i, onlineDisk := range onlineDisks { | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | 		if errs[i] != nil { | 
					
						
							| 
									
										
										
										
											2019-03-27 05:57:44 +08:00
										 |  |  | 			dataErrs[i] = errs[i] | 
					
						
							| 
									
										
										
										
											2017-03-05 06:53:28 +08:00
										 |  |  | 			continue | 
					
						
							|  |  |  | 		} | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | 		if onlineDisk == nil { | 
					
						
							|  |  |  | 			dataErrs[i] = errDiskNotFound | 
					
						
							|  |  |  | 			continue | 
					
						
							|  |  |  | 		} | 
					
						
							| 
									
										
										
										
											2020-10-28 15:10:20 +08:00
										 |  |  | 		if erasureDistributionReliable { | 
					
						
							|  |  |  | 			meta := partsMetadata[i] | 
					
						
							|  |  |  | 			if !meta.IsValid() { | 
					
						
							|  |  |  | 				continue | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2020-10-29 10:24:01 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 			if len(meta.Erasure.Distribution) != len(onlineDisks) { | 
					
						
							|  |  |  | 				// Erasure distribution is not the same as onlineDisks
 | 
					
						
							|  |  |  | 				// attempt a fix if possible, assuming other entries
 | 
					
						
							|  |  |  | 				// might have the right erasure distribution.
 | 
					
						
							|  |  |  | 				partsMetadata[i] = FileInfo{} | 
					
						
							|  |  |  | 				dataErrs[i] = errFileCorrupt | 
					
						
							|  |  |  | 				continue | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-28 15:10:20 +08:00
										 |  |  | 			// Since erasure.Distribution is trustable we can fix the mismatching erasure.Index
 | 
					
						
							|  |  |  | 			if meta.Erasure.Distribution[i] != meta.Erasure.Index { | 
					
						
							|  |  |  | 				partsMetadata[i] = FileInfo{} | 
					
						
							|  |  |  | 				dataErrs[i] = errFileCorrupt | 
					
						
							|  |  |  | 				continue | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		} | 
					
						
							| 
									
										
										
										
											2018-01-23 06:54:55 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-15 04:08:51 +08:00
										 |  |  | 		switch scanMode { | 
					
						
							|  |  |  | 		case madmin.HealDeepScan: | 
					
						
							| 
									
										
										
										
											2020-06-13 11:04:01 +08:00
										 |  |  | 			// disk has a valid xl.meta but may not have all the
 | 
					
						
							| 
									
										
										
										
											2019-03-15 04:08:51 +08:00
										 |  |  | 			// parts. This is considered an outdated disk, since
 | 
					
						
							|  |  |  | 			// it needs healing too.
 | 
					
						
							| 
									
										
										
										
											2020-09-05 00:45:06 +08:00
										 |  |  | 			dataErrs[i] = onlineDisk.VerifyFile(ctx, bucket, object, partsMetadata[i]) | 
					
						
							| 
									
										
										
										
											2019-03-15 04:08:51 +08:00
										 |  |  | 		case madmin.HealNormalScan: | 
					
						
							| 
									
										
										
										
											2020-09-05 00:45:06 +08:00
										 |  |  | 			dataErrs[i] = onlineDisk.CheckParts(ctx, bucket, object, partsMetadata[i]) | 
					
						
							| 
									
										
										
										
											2017-09-29 06:57:19 +08:00
										 |  |  | 		} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-01-23 06:54:55 +08:00
										 |  |  | 		if dataErrs[i] == nil { | 
					
						
							| 
									
										
										
										
											2017-09-29 06:57:19 +08:00
										 |  |  | 			// All parts verified, mark it as all data available.
 | 
					
						
							|  |  |  | 			availableDisks[i] = onlineDisk | 
					
						
							| 
									
										
										
										
											2017-03-05 06:53:28 +08:00
										 |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-03 08:13:51 +08:00
										 |  |  | 	return availableDisks, dataErrs | 
					
						
							| 
									
										
										
										
											2017-03-05 06:53:28 +08:00
										 |  |  | } |