Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359613
b: refs/heads/master
c: 98571b5
h: refs/heads/master
i:
  359611: b6d3f7f
v: v3
  • Loading branch information
Alex Elder committed Jan 25, 2013
1 parent b947679 commit c74375f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 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: e0b49868d3629708eda593b6739cb78f33ab238a
refs/heads/master: 98571b5aa776d4a69eadd7d4e5c9d4e69365ab9a
17 changes: 8 additions & 9 deletions trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
(NAME_MAX - (sizeof (RBD_SNAP_DEV_NAME_PREFIX) - 1))

#define RBD_MAX_SNAP_COUNT 510 /* allows max snapc to fit in 4KB */
#define RBD_MAX_OPT_LEN 1024

#define RBD_SNAP_HEAD_NAME "-"

Expand All @@ -96,8 +95,6 @@
#define DEV_NAME_LEN 32
#define MAX_INT_FORMAT_WIDTH ((5 * sizeof (int)) / 2 + 1)

#define RBD_READ_ONLY_DEFAULT false

/*
* block device image metadata (in-memory version)
*/
Expand Down Expand Up @@ -156,10 +153,6 @@ struct rbd_spec {
struct kref kref;
};

struct rbd_options {
bool read_only;
};

/*
* an instance of the client. multiple devices may share an rbd client.
*/
Expand Down Expand Up @@ -475,6 +468,12 @@ static match_table_t rbd_opts_tokens = {
{-1, NULL}
};

struct rbd_options {
bool read_only;
};

#define RBD_READ_ONLY_DEFAULT false

static int parse_rbd_opts_token(char *c, void *private)
{
struct rbd_options *rbd_opts = private;
Expand Down Expand Up @@ -773,7 +772,7 @@ static void rbd_header_free(struct rbd_image_header *header)
header->snapc = NULL;
}

static char *rbd_segment_name(struct rbd_device *rbd_dev, u64 offset)
static const char *rbd_segment_name(struct rbd_device *rbd_dev, u64 offset)
{
char *name;
u64 segment;
Expand Down Expand Up @@ -1338,7 +1337,7 @@ static int rbd_do_op(struct request *rq,
struct rbd_req_coll *coll,
int coll_index)
{
char *seg_name;
const char *seg_name;
u64 seg_ofs;
u64 seg_len;
int ret;
Expand Down

0 comments on commit c74375f

Please sign in to comment.