Home
last modified time | relevance | path

Searched refs:pathlen (Results 1 – 22 of 22) sorted by relevance

/kernel/linux/linux-5.10/fs/xfs/
Dxfs_symlink.c36 int pathlen = ip->i_d.di_size; in xfs_readlink_bmap_ilocked() local
46 fsblocks = xfs_symlink_blocks(mp, pathlen); in xfs_readlink_bmap_ilocked()
61 if (pathlen < byte_cnt) in xfs_readlink_bmap_ilocked()
62 byte_cnt = pathlen; in xfs_readlink_bmap_ilocked()
82 pathlen -= byte_cnt; in xfs_readlink_bmap_ilocked()
87 ASSERT(pathlen == 0); in xfs_readlink_bmap_ilocked()
102 xfs_fsize_t pathlen; in xfs_readlink() local
114 pathlen = ip->i_d.di_size; in xfs_readlink()
115 if (!pathlen) in xfs_readlink()
118 if (pathlen < 0 || pathlen > XFS_SYMLINK_MAXLEN) { in xfs_readlink()
[all …]
/kernel/linux/linux-5.10/arch/um/os-Linux/
Dexecvp.c50 size_t len, pathlen; in execvp_noalloc() local
57 pathlen = strlen(path); in execvp_noalloc()
59 name = memcpy(buf + pathlen + 1, file, len); in execvp_noalloc()
/kernel/linux/linux-5.10/fs/
Ddcookies.c156 size_t pathlen; in do_lookup_dcookie() local
192 pathlen = kbuf + PAGE_SIZE - path; in do_lookup_dcookie()
193 if (pathlen <= len) { in do_lookup_dcookie()
194 err = pathlen; in do_lookup_dcookie()
195 if (copy_to_user(buf, path, pathlen)) in do_lookup_dcookie()
/kernel/linux/linux-5.10/fs/ceph/
Ddebugfs.c58 int pathlen = 0; in mdsc_show() local
84 path = ceph_mdsc_build_path(req->r_dentry, &pathlen, in mdsc_show()
94 ceph_mdsc_free_path(path, pathlen); in mdsc_show()
103 path = ceph_mdsc_build_path(req->r_old_dentry, &pathlen, in mdsc_show()
114 ceph_mdsc_free_path(path, pathlen); in mdsc_show()
Dmds_client.c2522 u64 rino, const char **ppath, int *pathlen, in set_request_path_attr() argument
2528 r = build_inode_path(rinode, ppath, pathlen, ino, freepath); in set_request_path_attr()
2532 r = build_dentry_path(rdentry, rdiri, ppath, pathlen, ino, in set_request_path_attr()
2534 dout(" dentry %p %llx/%.*s\n", rdentry, *ino, *pathlen, in set_request_path_attr()
2539 *pathlen = rpath ? strlen(rpath) : 0; in set_request_path_attr()
2540 dout(" path %.*s\n", *pathlen, rpath); in set_request_path_attr()
3731 int pathlen = 0, err; in reconnect_caps_cb() local
3742 path = ceph_mdsc_build_path(dentry, &pathlen, &pathbase, in reconnect_caps_cb()
3847 struct_len += sizeof(u32) + pathlen + sizeof(rec.v2); in reconnect_caps_cb()
3871 ceph_pagelist_encode_string(pagelist, path, pathlen); in reconnect_caps_cb()
[all …]
Ddir.c1063 int pathlen = 0; in ceph_async_unlink_cb() local
1065 char *path = ceph_mdsc_build_path(req->r_dentry, &pathlen, in ceph_async_unlink_cb()
1081 ceph_mdsc_free_path(path, pathlen); in ceph_async_unlink_cb()
Dfile.c528 int pathlen = 0; in ceph_async_create_cb() local
530 char *path = ceph_mdsc_build_path(req->r_dentry, &pathlen, in ceph_async_create_cb()
540 ceph_mdsc_free_path(path, pathlen); in ceph_async_create_cb()
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_symlink_remote.c28 int pathlen) in xfs_symlink_blocks() argument
32 return (pathlen + buflen - 1) / buflen; in xfs_symlink_blocks()
Dxfs_shared.h130 int xfs_symlink_blocks(struct xfs_mount *mp, int pathlen);
/kernel/linux/linux-5.10/tools/testing/selftests/exec/
Dexecveat.c73 int pathlen = path ? strlen(path) : 0; in check_execveat_invoked_rc() local
75 if (pathlen > 40) in check_execveat_invoked_rc()
77 fd, path, (path + pathlen - 20), flags); in check_execveat_invoked_rc()
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin.h42 int pathlen);
Dbuiltin-script.c3103 int pathlen) in find_scripts() argument
3150 snprintf(scripts_path_array[i], pathlen, "%s/%s", in find_scripts()
/kernel/linux/linux-5.10/drivers/firmware/tegra/
Dbpmp-debugfs.c369 const size_t pathlen = SZ_256; in bpmp_populate_debugfs_inband() local
385 pathbuf = kzalloc(pathlen, GFP_KERNEL); in bpmp_populate_debugfs_inband()
415 len = snprintf(pathbuf, pathlen, "%s%s/", ppath, name); in bpmp_populate_debugfs_inband()
416 if (len >= pathlen) { in bpmp_populate_debugfs_inband()
/kernel/linux/linux-5.10/security/integrity/ima/
Dima_fs.c279 int rc, pathlen = strlen(path); in ima_read_policy() local
311 return pathlen; in ima_read_policy()
/kernel/linux/linux-5.10/kernel/
Dauditfilter.c1303 int dlen, pathlen; in audit_compare_dname_path() local
1307 pathlen = strlen(path); in audit_compare_dname_path()
1308 if (pathlen < dlen) in audit_compare_dname_path()
1312 if (pathlen - parentlen != dlen) in audit_compare_dname_path()
/kernel/linux/linux-5.10/fs/nfs/
Ddir.c2121 unsigned int pathlen = strlen(symname); in nfs_symlink() local
2127 if (pathlen > PAGE_SIZE) in nfs_symlink()
2138 memcpy(kaddr, symname, pathlen); in nfs_symlink()
2139 if (pathlen < PAGE_SIZE) in nfs_symlink()
2140 memset(kaddr + pathlen, 0, PAGE_SIZE - pathlen); in nfs_symlink()
2143 error = NFS_PROTO(dir)->symlink(dir, dentry, page, pathlen, &attr); in nfs_symlink()
Dproc.c409 .pathlen = len, in nfs_proc_symlink()
Dnfs2xdr.c757 encode_path(xdr, args->pages, args->pathlen); in nfs2_xdr_enc_symlinkargs()
Dnfs3proc.c542 data->arg.symlink.pathlen = len; in nfs3_proc_symlink()
Dnfs3xdr.c1081 encode_nfspath3(xdr, args->pages, args->pathlen); in encode_symlinkdata3()
/kernel/linux/linux-5.10/include/linux/
Dnfs_xdr.h836 unsigned int pathlen; member
914 unsigned int pathlen; member
/kernel/linux/linux-5.10/fs/nfsd/
Dnfs4xdr.c2358 __be32 pathlen; in nfsd4_encode_components_esc() local
2405 pathlen = htonl(count); in nfsd4_encode_components_esc()
2406 write_bytes_to_xdr_buf(xdr->buf, pathlen_offset, &pathlen, 4); in nfsd4_encode_components_esc()