Re: [Openstack] Metadata in listing

2012-12-13 Thread Chuck Thier
The metadata for objects is stored at the object level, not in the
container dbs.  Reporting metadata information for container listings
would require the server to HEAD every object in the container, which
would cause too much work on the backend.

--
Chuck

On Wed, Dec 12, 2012 at 7:01 AM, Morten Møller Riis m...@gigahost.dk wrote:
 Hi Guys

 I was wondering if there is any possibility of getting metadata output in
 the listing when you issue a GET on a container.

 At the moment it returns eg.:

 object
 name10620_1b8b2553c6eb9987ff647d69e3181f9eeb3a43ef.jpg/name
 hashe453fcd7ff03e9e0e460555e875b1da1/hash
 bytes9272/bytes
 content_typeimage/jpeg/content_type
 last_modified2012-09-20T23:27:34.473230/last_modified
 /object

 If I have X-Object-Meta-Something on an object it would be nice to see it
 here as well. I know I can get it by doing a HEAD request. But this gets
 heavy for many objects.

 Any suggestions?

 Best regards
 Morten Møller Riis






 Med venlig hilsen / Best regards
 Morten Møller Riis
 m...@gigahost.dk

 Gigahost
 Gammeltorv 8, 2.
 1457 København K





 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Metadata in listing

2012-12-13 Thread Morten Møller Riis
Thanks Chuck.

What I am playing at here is I want to create an rsync like script where I can 
save permissions, owner uid/gid and mode (maybe even xattrs), so that a restore 
will work with these.

Swift makes this very easy with the object metadata - however, running a sync 
would require i HEAD request for each file. I was looking to optimize this.


Med venlig hilsen / Best regards
Morten Møller Riis
m...@gigahost.dk

Gigahost
Gammeltorv 8, 2.
1457 København K




On Dec 13, 2012, at 4:40 PM, Chuck Thier cth...@gmail.com wrote:

 The metadata for objects is stored at the object level, not in the
 container dbs.  Reporting metadata information for container listings
 would require the server to HEAD every object in the container, which
 would cause too much work on the backend.
 
 --
 Chuck
 
 On Wed, Dec 12, 2012 at 7:01 AM, Morten Møller Riis m...@gigahost.dk wrote:
 Hi Guys
 
 I was wondering if there is any possibility of getting metadata output in
 the listing when you issue a GET on a container.
 
 At the moment it returns eg.:
 
 object
 name10620_1b8b2553c6eb9987ff647d69e3181f9eeb3a43ef.jpg/name
 hashe453fcd7ff03e9e0e460555e875b1da1/hash
 bytes9272/bytes
 content_typeimage/jpeg/content_type
 last_modified2012-09-20T23:27:34.473230/last_modified
 /object
 
 If I have X-Object-Meta-Something on an object it would be nice to see it
 here as well. I know I can get it by doing a HEAD request. But this gets
 heavy for many objects.
 
 Any suggestions?
 
 Best regards
 Morten Møller Riis
 
 
 
 
 
 
 Med venlig hilsen / Best regards
 Morten Møller Riis
 m...@gigahost.dk
 
 Gigahost
 Gammeltorv 8, 2.
 1457 København K
 
 
 
 
 
 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp
 

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp