Details
-
Improvement
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
None
-
None
Description
Bucket info/list should have a property showing whether it has snapshots or not
Bucket info -
[root@quasar-ihzxuo-1 ~]# ozone sh bucket ls vol-4mez4 --has-snapshot [ { "metadata" : { }, "volumeName" : "vol-4mez4", "name" : "buck1", "storageType" : "DISK", "versioning" : false, "usedBytes" : 0, "usedNamespace" : 0, "creationTime" : "2023-10-06T06:43:07.174Z", "modificationTime" : "2023-10-06T06:43:07.174Z", "sourcePathExist" : true, "quotaInBytes" : -1, "quotaInNamespace" : -1, "bucketLayout" : "FILE_SYSTEM_OPTIMIZED", "owner" : "om", "link" : false } ] [root@quasar-ihzxuo-1 ~]# ozone sh bucket info vol-4mez4/buck1 { "metadata" : { }, "volumeName" : "vol-4mez4", "name" : "buck1", "storageType" : "DISK", "versioning" : false, "usedBytes" : 0, "usedNamespace" : 0, "creationTime" : "2023-10-06T06:43:07.174Z", "modificationTime" : "2023-10-06T06:43:07.174Z", "sourcePathExist" : true, "quotaInBytes" : -1, "quotaInNamespace" : -1, "bucketLayout" : "FILE_SYSTEM_OPTIMIZED", "owner" : "om", "link" : false }
It would be an extension of feature 'bucket ls --has-snapshot'.