Lines Matching refs:path
2590 * ceph_mdsc_build_path - build a path string to a given dentry
2591 * @dentry: dentry to which path should be built
2594 * @for_wire: is this path going to be sent to the MDS?
2596 * Build a string that represents the path to the dentry. This is mostly called
2599 * 1) we need to build a path string to send to the MDS (for_wire == true)
2600 * 2) we need a path string for local presentation (e.g. debugfs)
2603 * The path is built in reverse, starting with the dentry. Walk back up toward
2604 * the root, building the path until the first non-snapped inode is reached
2615 char *path;
2623 path = __getname();
2624 if (!path)
2628 path[pos] = '\0';
2638 dout("build_path path+%d: %p SNAPDIR\n",
2653 memcpy(path + pos, cur->d_name.name, cur->d_name.len);
2690 memcpy(path + pos, buf, len);
2703 path[pos] = '/';
2717 pr_warn("build_path did not end path lookup where expected (pos = %d)\n",
2725 dentry, d_count(dentry), base, *plen, path + pos);
2726 return path + pos;
2733 char *path;
2747 path = ceph_mdsc_build_path(dentry, ppathlen, pino, 1);
2748 if (IS_ERR(path))
2749 return PTR_ERR(path);
2750 *ppath = path;
2760 char *path;
2768 path = ceph_mdsc_build_path(dentry, ppathlen, pino, 1);
2770 if (IS_ERR(path))
2771 return PTR_ERR(path);
2772 *ppath = path;
2779 * an explicit ino+path.
2801 dout(" path %.*s\n", *pathlen, rpath);
4302 char *path;
4310 path = ceph_mdsc_build_path(dentry, &pathlen, &pathbase,
4313 if (IS_ERR(path)) {
4314 err = PTR_ERR(path);
4318 path = NULL;
4449 ceph_pagelist_encode_string(pagelist, path, pathlen);
4465 ceph_pagelist_encode_string(pagelist, path, pathlen);
4470 ceph_mdsc_free_path(path, pathlen);