Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331677
b: refs/heads/master
c: 3bb59ad
h: refs/heads/master
i:
  331675: c01ff2f
v: v3
  • Loading branch information
Alex Elder committed Oct 1, 2012
1 parent c32cc88 commit b4a0c7b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f8d4de6e1c939d56f1ee0a21ad677401846f990c
refs/heads/master: 3bb59ad515527fa75cf71d997d17cea18160da74
25 changes: 20 additions & 5 deletions trunk/drivers/block/rbd_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,30 @@

#include <linux/types.h>

/* For format version 2, rbd image 'foo' consists of objects
* rbd_id.foo - id of image
* rbd_header.<id> - image metadata
* rbd_data.<id>.0000000000000000
* rbd_data.<id>.0000000000000001
* ... - data
* Clients do not access header data directly in rbd format 2.
*/

#define RBD_HEADER_PREFIX "rbd_header."
#define RBD_DATA_PREFIX "rbd_data."
#define RBD_ID_PREFIX "rbd_id."

/*
* rbd image 'foo' consists of objects
* foo.rbd - image metadata
* foo.00000000
* foo.00000001
* ... - data
* For format version 1, rbd image 'foo' consists of objects
* foo.rbd - image metadata
* rb.<idhi>.<idlo>.00000000
* rb.<idhi>.<idlo>.00000001
* ... - data
* There is no notion of a persistent image id in rbd format 1.
*/

#define RBD_SUFFIX ".rbd"

#define RBD_DIRECTORY "rbd_directory"
#define RBD_INFO "rbd_info"

Expand Down

0 comments on commit b4a0c7b

Please sign in to comment.