Home
last modified time | relevance | path

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

/Linux-v6.6/fs/xfs/
Dxfs_symlink.c38 int pathlen = ip->i_disk_size; in xfs_readlink_bmap_ilocked() local
48 fsblocks = xfs_symlink_blocks(mp, pathlen); in xfs_readlink_bmap_ilocked()
63 if (pathlen < byte_cnt) in xfs_readlink_bmap_ilocked()
64 byte_cnt = pathlen; in xfs_readlink_bmap_ilocked()
84 pathlen -= byte_cnt; in xfs_readlink_bmap_ilocked()
89 ASSERT(pathlen == 0); in xfs_readlink_bmap_ilocked()
104 xfs_fsize_t pathlen; in xfs_readlink() local
114 pathlen = ip->i_disk_size; in xfs_readlink()
115 if (!pathlen) in xfs_readlink()
118 if (pathlen < 0 || pathlen > XFS_SYMLINK_MAXLEN) { in xfs_readlink()
[all …]
/Linux-v6.6/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()
/Linux-v6.6/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.c2783 u64 rino, const char **ppath, int *pathlen, in set_request_path_attr() argument
2789 r = build_inode_path(rinode, ppath, pathlen, ino, freepath); in set_request_path_attr()
2793 r = build_dentry_path(rdentry, rdiri, ppath, pathlen, ino, in set_request_path_attr()
2795 dout(" dentry %p %llx/%.*s\n", rdentry, *ino, *pathlen, in set_request_path_attr()
2800 *pathlen = rpath ? strlen(rpath) : 0; in set_request_path_attr()
2801 dout(" path %.*s\n", *pathlen, rpath); in set_request_path_attr()
4303 int pathlen = 0, err; in reconnect_caps_cb() local
4310 path = ceph_mdsc_build_path(dentry, &pathlen, &pathbase, in reconnect_caps_cb()
4425 struct_len += sizeof(u32) + pathlen + sizeof(rec.v2); in reconnect_caps_cb()
4449 ceph_pagelist_encode_string(pagelist, path, pathlen); in reconnect_caps_cb()
[all …]
Ddir.c1227 int pathlen = 0; in ceph_async_unlink_cb() local
1229 char *path = ceph_mdsc_build_path(dentry, &pathlen, in ceph_async_unlink_cb()
1245 ceph_mdsc_free_path(path, pathlen); in ceph_async_unlink_cb()
Dfile.c575 int pathlen = 0; in ceph_async_create_cb() local
577 char *path = ceph_mdsc_build_path(req->r_dentry, &pathlen, in ceph_async_create_cb()
582 ceph_mdsc_free_path(path, pathlen); in ceph_async_create_cb()
/Linux-v6.6/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.h135 int xfs_symlink_blocks(struct xfs_mount *mp, int pathlen);
/Linux-v6.6/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()
/Linux-v6.6/tools/perf/
Dbuiltin.h41 int pathlen);
Dbuiltin-script.c3476 int pathlen) in find_scripts() argument
3523 snprintf(scripts_path_array[i], pathlen, "%s/%s", in find_scripts()
/Linux-v6.6/drivers/firmware/tegra/
Dbpmp-debugfs.c407 const size_t pathlen = SZ_256; in bpmp_populate_debugfs_inband() local
423 pathbuf = kzalloc(pathlen, GFP_KERNEL); in bpmp_populate_debugfs_inband()
453 len = snprintf(pathbuf, pathlen, "%s%s/", ppath, name); in bpmp_populate_debugfs_inband()
454 if (len >= pathlen) { in bpmp_populate_debugfs_inband()
/Linux-v6.6/security/integrity/ima/
Dima_fs.c279 int rc, pathlen = strlen(path); in ima_read_policy() local
311 return pathlen; in ima_read_policy()
/Linux-v6.6/fs/exfat/
Dnamei.c418 int pathlen = strlen(path); in __exfat_resolve_path() local
424 namelen = exfat_striptail_len(pathlen, path, false); in __exfat_resolve_path()
430 if (!lookup && (namelen < pathlen)) in __exfat_resolve_path()
432 namelen = pathlen; in __exfat_resolve_path()
436 if (pathlen > (MAX_NAME_LENGTH * MAX_CHARSET_SIZE)) in __exfat_resolve_path()
/Linux-v6.6/kernel/
Dauditfilter.c1313 int dlen, pathlen; in audit_compare_dname_path() local
1317 pathlen = strlen(path); in audit_compare_dname_path()
1318 if (pathlen < dlen) in audit_compare_dname_path()
1322 if (pathlen - parentlen != dlen) in audit_compare_dname_path()
/Linux-v6.6/fs/nfs/
Ddir.c2538 unsigned int pathlen = strlen(symname); in nfs_symlink() local
2544 if (pathlen > PAGE_SIZE) in nfs_symlink()
2555 memcpy(kaddr, symname, pathlen); in nfs_symlink()
2556 if (pathlen < PAGE_SIZE) in nfs_symlink()
2557 memset(kaddr + pathlen, 0, PAGE_SIZE - pathlen); in nfs_symlink()
2560 error = NFS_PROTO(dir)->symlink(dir, dentry, page, pathlen, &attr); in nfs_symlink()
Dproc.c409 .pathlen = len, in nfs_proc_symlink()
Dnfs2xdr.c758 encode_path(xdr, args->pages, args->pathlen); in nfs2_xdr_enc_symlinkargs()
Dnfs3proc.c566 data->arg.symlink.pathlen = len; in nfs3_proc_symlink()
Dnfs3xdr.c1084 encode_nfspath3(xdr, args->pages, args->pathlen); in encode_symlinkdata3()
/Linux-v6.6/include/linux/
Dnfs_xdr.h860 unsigned int pathlen; member
938 unsigned int pathlen; member
/Linux-v6.6/fs/nfsd/
Dnfs4xdr.c2603 __be32 pathlen; in nfsd4_encode_components_esc() local
2650 pathlen = htonl(count); in nfsd4_encode_components_esc()
2651 write_bytes_to_xdr_buf(xdr->buf, pathlen_offset, &pathlen, 4); in nfsd4_encode_components_esc()