• Home
  • Raw
  • Download

Lines Matching refs:pctx

6331 			    struct rbd_parse_opts_ctx *pctx)  in rbd_parse_param()  argument
6333 struct rbd_options *opt = pctx->opts; in rbd_parse_param()
6338 ret = ceph_parse_param(param, pctx->copts, NULL); in rbd_parse_param()
6371 kfree(pctx->spec->pool_ns); in rbd_parse_param()
6372 pctx->spec->pool_ns = param->string; in rbd_parse_param()
6427 static int rbd_parse_options(char *options, struct rbd_parse_opts_ctx *pctx) in rbd_parse_options() argument
6455 ret = rbd_parse_param(&param, pctx); in rbd_parse_options()
6516 struct rbd_parse_opts_ctx pctx = { 0 }; in rbd_add_parse_args() local
6539 pctx.spec = rbd_spec_alloc(); in rbd_add_parse_args()
6540 if (!pctx.spec) in rbd_add_parse_args()
6543 pctx.spec->pool_name = dup_token(&buf, NULL); in rbd_add_parse_args()
6544 if (!pctx.spec->pool_name) in rbd_add_parse_args()
6546 if (!*pctx.spec->pool_name) { in rbd_add_parse_args()
6551 pctx.spec->image_name = dup_token(&buf, NULL); in rbd_add_parse_args()
6552 if (!pctx.spec->image_name) in rbd_add_parse_args()
6554 if (!*pctx.spec->image_name) { in rbd_add_parse_args()
6575 pctx.spec->snap_name = snap_name; in rbd_add_parse_args()
6577 pctx.copts = ceph_alloc_options(); in rbd_add_parse_args()
6578 if (!pctx.copts) in rbd_add_parse_args()
6583 pctx.opts = kzalloc(sizeof(*pctx.opts), GFP_KERNEL); in rbd_add_parse_args()
6584 if (!pctx.opts) in rbd_add_parse_args()
6587 pctx.opts->read_only = RBD_READ_ONLY_DEFAULT; in rbd_add_parse_args()
6588 pctx.opts->queue_depth = RBD_QUEUE_DEPTH_DEFAULT; in rbd_add_parse_args()
6589 pctx.opts->alloc_size = RBD_ALLOC_SIZE_DEFAULT; in rbd_add_parse_args()
6590 pctx.opts->lock_timeout = RBD_LOCK_TIMEOUT_DEFAULT; in rbd_add_parse_args()
6591 pctx.opts->lock_on_read = RBD_LOCK_ON_READ_DEFAULT; in rbd_add_parse_args()
6592 pctx.opts->exclusive = RBD_EXCLUSIVE_DEFAULT; in rbd_add_parse_args()
6593 pctx.opts->trim = RBD_TRIM_DEFAULT; in rbd_add_parse_args()
6595 ret = ceph_parse_mon_ips(mon_addrs, mon_addrs_size, pctx.copts, NULL); in rbd_add_parse_args()
6599 ret = rbd_parse_options(options, &pctx); in rbd_add_parse_args()
6603 *ceph_opts = pctx.copts; in rbd_add_parse_args()
6604 *opts = pctx.opts; in rbd_add_parse_args()
6605 *rbd_spec = pctx.spec; in rbd_add_parse_args()
6612 kfree(pctx.opts); in rbd_add_parse_args()
6613 ceph_destroy_options(pctx.copts); in rbd_add_parse_args()
6614 rbd_spec_put(pctx.spec); in rbd_add_parse_args()