swift-object-info should report all object metadata
Bug #1431334 reported by
Alistair Coles
on 2015-03-12
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| OpenStack Object Storage (swift) |
Wishlist
|
Ricardo Ferreira |
Bug Description
swift-object-info can currently be pointed at a *file* and will report info from that file. It would be really useful to be able to optionally point the tool at a directory and have the tool open the on-disk file set to compose any .meta with .data files, printing the aggregate as would be included with an object GET.
https:/
Alistair Coles (alistair-coles)
on 2015-03-12
Changed in swift: | |
importance: | Undecided → Wishlist |
Ricardo Ferreira (rsff)
on 2015-03-12
Changed in swift: | |
assignee: | nobody → Ricardo Ferreira (rsff) |
Jiri Suchomel (jsuchome) wrote : | #1 |
Jiri Suchomel (jsuchome) wrote : | #2 |
Sorry, now properly formatted...
John Dickinson (notmyname) wrote : | #3 |
Jiri, can you please propose this as a patch to Swift via gerrit (including this bug in the commit message)? That way the community can review it and offer feedback.
John Dickinson (notmyname)
on 2015-07-06
Changed in swift: | |
status: | New → Confirmed |
Alistair Coles (alistair-coles) wrote : | #4 |
Proposed patch here https:/
To post a comment you must log in.
Would the simple change like this be enough? Or am I misunderstanding the request?
335a336,345 isdir(datafile) : join(datafile, f) isfile( new_datafile) : new_datafile, check_etag, swift_dir, policy_name)
> if os.path.
>
> for (dirpath, dirnames, filenames) in os.walk(datafile):
> for f in filenames:
> new_datafile = os.path.
> if os.path.
> print ("Checking file %s" % new_datafile)
> print_obj(
> break # not going deeper
> return