Lines Matching refs:pctx

6232 			    struct rbd_parse_opts_ctx *pctx)  in rbd_parse_param()  argument
6234 struct rbd_options *opt = pctx->opts; in rbd_parse_param()
6239 ret = ceph_parse_param(param, pctx->copts, NULL); in rbd_parse_param()
6272 kfree(pctx->spec->pool_ns); in rbd_parse_param()
6273 pctx->spec->pool_ns = param->string; in rbd_parse_param()
6328 static int rbd_parse_options(char *options, struct rbd_parse_opts_ctx *pctx) in rbd_parse_options() argument
6356 ret = rbd_parse_param(&param, pctx); in rbd_parse_options()
6417 struct rbd_parse_opts_ctx pctx = { 0 }; in rbd_add_parse_args() local
6440 pctx.spec = rbd_spec_alloc(); in rbd_add_parse_args()
6441 if (!pctx.spec) in rbd_add_parse_args()
6444 pctx.spec->pool_name = dup_token(&buf, NULL); in rbd_add_parse_args()
6445 if (!pctx.spec->pool_name) in rbd_add_parse_args()
6447 if (!*pctx.spec->pool_name) { in rbd_add_parse_args()
6452 pctx.spec->image_name = dup_token(&buf, NULL); in rbd_add_parse_args()
6453 if (!pctx.spec->image_name) in rbd_add_parse_args()
6455 if (!*pctx.spec->image_name) { in rbd_add_parse_args()
6476 pctx.spec->snap_name = snap_name; in rbd_add_parse_args()
6478 pctx.copts = ceph_alloc_options(); in rbd_add_parse_args()
6479 if (!pctx.copts) in rbd_add_parse_args()
6484 pctx.opts = kzalloc(sizeof(*pctx.opts), GFP_KERNEL); in rbd_add_parse_args()
6485 if (!pctx.opts) in rbd_add_parse_args()
6488 pctx.opts->read_only = RBD_READ_ONLY_DEFAULT; in rbd_add_parse_args()
6489 pctx.opts->queue_depth = RBD_QUEUE_DEPTH_DEFAULT; in rbd_add_parse_args()
6490 pctx.opts->alloc_size = RBD_ALLOC_SIZE_DEFAULT; in rbd_add_parse_args()
6491 pctx.opts->lock_timeout = RBD_LOCK_TIMEOUT_DEFAULT; in rbd_add_parse_args()
6492 pctx.opts->lock_on_read = RBD_LOCK_ON_READ_DEFAULT; in rbd_add_parse_args()
6493 pctx.opts->exclusive = RBD_EXCLUSIVE_DEFAULT; in rbd_add_parse_args()
6494 pctx.opts->trim = RBD_TRIM_DEFAULT; in rbd_add_parse_args()
6496 ret = ceph_parse_mon_ips(mon_addrs, mon_addrs_size, pctx.copts, NULL, in rbd_add_parse_args()
6501 ret = rbd_parse_options(options, &pctx); in rbd_add_parse_args()
6505 *ceph_opts = pctx.copts; in rbd_add_parse_args()
6506 *opts = pctx.opts; in rbd_add_parse_args()
6507 *rbd_spec = pctx.spec; in rbd_add_parse_args()
6514 kfree(pctx.opts); in rbd_add_parse_args()
6515 ceph_destroy_options(pctx.copts); in rbd_add_parse_args()
6516 rbd_spec_put(pctx.spec); in rbd_add_parse_args()