Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347577
b: refs/heads/master
c: 8699209
h: refs/heads/master
i:
  347575: d7d4389
v: v3
  • Loading branch information
Alex Elder committed Oct 30, 2012
1 parent 2868a3f commit 8e4e536
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 41f38c2b2f8b66b176a0e548ef06294343a7bfa2
refs/heads/master: 86992098e7fdb97d01feb51495a952b264a55b7c
8 changes: 4 additions & 4 deletions trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ struct rbd_device {
size_t image_name_len;
char *header_name;
char *pool_name;
int pool_id;
u64 pool_id;

struct ceph_osd_event *watch_event;
struct ceph_osd_request *watch_request;
Expand Down Expand Up @@ -1113,7 +1113,7 @@ static int rbd_do_request(struct request *rq,
layout->fl_stripe_unit = cpu_to_le32(1 << RBD_MAX_OBJ_ORDER);
layout->fl_stripe_count = cpu_to_le32(1);
layout->fl_object_size = cpu_to_le32(1 << RBD_MAX_OBJ_ORDER);
layout->fl_pg_pool = cpu_to_le32(rbd_dev->pool_id);
layout->fl_pg_pool = cpu_to_le32((int) rbd_dev->pool_id);
ret = ceph_calc_raw_layout(osdc, layout, snapid, ofs, &len, &bno,
req, ops);
rbd_assert(ret == 0);
Expand Down Expand Up @@ -1982,7 +1982,7 @@ static ssize_t rbd_pool_id_show(struct device *dev,
{
struct rbd_device *rbd_dev = dev_to_rbd_dev(dev);

return sprintf(buf, "%d\n", rbd_dev->pool_id);
return sprintf(buf, "%llu\n", (unsigned long long) rbd_dev->pool_id);
}

static ssize_t rbd_name_show(struct device *dev,
Expand Down Expand Up @@ -3170,7 +3170,7 @@ static ssize_t rbd_add(struct bus_type *bus,
rc = ceph_pg_poolid_by_name(osdc->osdmap, rbd_dev->pool_name);
if (rc < 0)
goto err_out_client;
rbd_dev->pool_id = rc;
rbd_dev->pool_id = (u64) rc;

rc = rbd_dev_probe(rbd_dev);
if (rc < 0)
Expand Down

0 comments on commit 8e4e536

Please sign in to comment.