Large Objects - list the segments of a given object

Asked by Pierre Padrixe (stannie) on 2012-12-18

My question concerns the Large Objects API in Swift described here: http://docs.openstack.org/developer/swift/overview_large_objects.html

I am looking for a method to list all the segments that belong to a file, so I can download the segment separately.
In the below link, they list the segments by listing the objects of the container (GET /container), which is not what I am looking for since I can have multiple segments that belongs to multiple objects etc.
https://cloud.sdsc.edu/v1/AUTH_sdsc/documentation/swiftfilesegments.html

Thanks,
Pierre.

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Last query:
2012-12-19
Last reply:
2012-12-19

This question was reopened

Samuel Merritt (torgomatic) said : #1

If you do a HEAD request of the manifest file, you'll see an "X-Object-Manifest" header. Its value will be of the form "segcontainer/segprefix".

Follow that with GET /segcontainer?prefix=segprefix to get a listing that only contains the segments for that manifest.

Awesome Samuel!
Thank you for being so reactive!

I think this precision should be added in the "Large Object Support" documentation, I would like to add it to contribute to Openstack Swift, how should I do?

Samuel Merritt (torgomatic) said : #4

This particular chunk of documentation lives in the Swift repository, so you'll want to follow the steps outlined here: https://github.com/openstack/swift/blob/master/CONTRIBUTING.md

There's tons of info on the OpenStack wiki (linked from the above document).

There's some tedious setup, but you only have to do it once. If your application to join the contributors group takes more than a couple of days, you can ask for help in #openstack or #openstack-dev on freenode.

Can you help with this problem?

Provide an answer of your own, or ask Pierre Padrixe (stannie) for more information if necessary.

To post a message you must log in.