Skip to content

Conversation

@nikeee
Copy link
Contributor

@nikeee nikeee commented Oct 31, 2025

Resolves #764

Type of Change

  • New Feature
  • Bug Fix

Related Issues

#764

Summary of Changes

Adds storage class to ListObjectsV2

Checklist

  • I have read and followed the CONTRIBUTING.md guidelines
  • Passed make pre-commit
  • Documentation updated (if needed)

Notes:
Based on #763 due to linter errors that would otherwise prevent CI pass

@houseme houseme requested a review from Copilot October 31, 2025 09:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for storage class information to the object metadata system. The implementation extracts storage class information from object metadata and propagates it through the system to be returned in S3 API responses.

Key Changes:

  • Added storage_class field to ObjectInfo struct to store storage class information
  • Modified ObjectInfo::from_file_info to extract storage class from metadata, defaulting to "STANDARD"
  • Updated S3 list_objects_v2 response to include storage class information

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
crates/ecstore/src/store_api.rs Added storage_class field to ObjectInfo struct, updated Clone implementation, and implemented extraction of storage class from metadata with default to STANDARD
rustfs/src/storage/ecfs.rs Updated S3 list_objects_v2 response to include storage class from ObjectInfo

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rustfs rustfs deleted a comment from Copilot AI Oct 31, 2025
@loverustfs loverustfs merged commit 79012be into rustfs:main Oct 31, 2025
18 checks passed
@nikeee nikeee deleted the storage-class-in-list branch October 31, 2025 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide StorageClass in ListObjectsV2

3 participants