Lines Matching refs:dev_name_end
263 static int ceph_parse_old_source(const char *dev_name, const char *dev_name_end, in ceph_parse_old_source() argument
270 if (*dev_name_end != ':') in ceph_parse_old_source()
273 r = ceph_parse_mon_ips(dev_name, dev_name_end - dev_name, in ceph_parse_old_source()
282 static int ceph_parse_new_source(const char *dev_name, const char *dev_name_end, in ceph_parse_new_source() argument
291 if (*dev_name_end != '=') { in ceph_parse_new_source()
309 len = dev_name_end - fs_name_start; in ceph_parse_new_source()
345 char *dev_name = param->string, *dev_name_end; in ceph_parse_source() local
352 dev_name_end = strchr(dev_name, '/'); in ceph_parse_source()
353 if (dev_name_end) { in ceph_parse_source()
359 fsopt->server_path = kstrdup(dev_name_end, GFP_KERNEL); in ceph_parse_source()
365 dev_name_end = dev_name + strlen(dev_name); in ceph_parse_source()
368 dev_name_end--; /* back up to separator */ in ceph_parse_source()
369 if (dev_name_end < dev_name) in ceph_parse_source()
372 dout("device name '%.*s'\n", (int)(dev_name_end - dev_name), dev_name); in ceph_parse_source()
377 ret = ceph_parse_new_source(dev_name, dev_name_end, fc); in ceph_parse_source()
382 ret = ceph_parse_old_source(dev_name, dev_name_end, fc); in ceph_parse_source()