Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331646
b: refs/heads/master
c: 84d34dc
h: refs/heads/master
v: v3
  • Loading branch information
Alex Elder committed Oct 1, 2012
1 parent 06942e9 commit 94e895a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 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: cc0538b62c839c2df7b9f8378bb37e3b35faa608
refs/heads/master: 84d34dcc116e117a41c6fc8be13430529fc2d9e7
8 changes: 0 additions & 8 deletions trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
#define DEV_NAME_LEN 32
#define MAX_INT_FORMAT_WIDTH ((5 * sizeof (int)) / 2 + 1)

#define RBD_NOTIFY_TIMEOUT_DEFAULT 10
#define RBD_READ_ONLY_DEFAULT false

/*
Expand All @@ -91,7 +90,6 @@ struct rbd_image_header {
};

struct rbd_options {
int notify_timeout;
bool read_only;
};

Expand Down Expand Up @@ -348,7 +346,6 @@ static struct rbd_client *rbd_client_find(struct ceph_options *ceph_opts)
* mount options
*/
enum {
Opt_notify_timeout,
Opt_last_int,
/* int args above */
Opt_last_string,
Expand All @@ -360,7 +357,6 @@ enum {
};

static match_table_t rbd_opts_tokens = {
{Opt_notify_timeout, "notify_timeout=%d"},
/* int args above */
/* string args above */
{Opt_read_only, "read_only"},
Expand Down Expand Up @@ -399,9 +395,6 @@ static int parse_rbd_opts_token(char *c, void *private)
}

switch (token) {
case Opt_notify_timeout:
rbd_opts->notify_timeout = intval;
break;
case Opt_read_only:
rbd_opts->read_only = true;
break;
Expand All @@ -425,7 +418,6 @@ static int rbd_get_client(struct rbd_device *rbd_dev, const char *mon_addr,
struct ceph_options *ceph_opts;
struct rbd_client *rbdc;

rbd_opts->notify_timeout = RBD_NOTIFY_TIMEOUT_DEFAULT;
rbd_opts->read_only = RBD_READ_ONLY_DEFAULT;

ceph_opts = ceph_parse_options(options, mon_addr,
Expand Down

0 comments on commit 94e895a

Please sign in to comment.