Searched refs:symlink (Results 1 - 200 of 254) sorted by relevance

12

/linux-4.1.27/fs/sysfs/
H A DMakefile5 obj-y := file.o dir.o symlink.o mount.o group.o
H A Dsymlink.c2 * fs/sysfs/symlink.c - sysfs symlink implementation
56 * sysfs_create_link_sd - create symlink to a given object.
59 * @name: name of the symlink.
84 * sysfs_create_link - create symlink between two objects.
87 * @name: name of the symlink.
97 * sysfs_create_link_nowarn - create symlink between two objects.
100 * @name: name of the symlink.
112 * sysfs_delete_link - remove symlink in object's directory.
115 * @name: name of the symlink to remove.
138 * sysfs_remove_link - remove symlink in object's directory.
140 * @name: name of the symlink to remove.
156 * sysfs_rename_link_ns - rename symlink in object's directory.
159 * @old: previous name of the symlink.
160 * @new: new name of the symlink.
161 * @new_ns: new namespace of the symlink.
163 * A helper function for the common rename symlink idiom.
188 if (kn->symlink.target_kn->priv != targ) sysfs_rename_link_ns()
H A Dsysfs.h38 * symlink.c
H A Ddir.c82 * protection; however, when @kobj is used as a symlink target, the sysfs_remove_dir()
85 * and symlink code may end up dereferencing an already freed node. sysfs_remove_dir()
88 * disassociation against symlink operations so that symlink code sysfs_remove_dir()
H A Dmount.c2 * fs/sysfs/symlink.c - operations for initializing and mounting sysfs
H A Dgroup.c314 * sysfs_add_link_to_group - add a symlink to an attribute group.
317 * @target: The target kobject of the symlink to create.
318 * @link_name: The name of the symlink to create.
338 * sysfs_remove_link_from_group - remove a symlink from an attribute group.
341 * @link_name: The name of the symlink to remove.
/linux-4.1.27/fs/kernfs/
H A DMakefile5 obj-y := mount.o inode.o dir.o file.o symlink.o
H A Dsymlink.c2 * fs/kernfs/symlink.c - kernfs symlink implementation
18 * kernfs_create_link - create a symlink
19 * @parent: directory to create the symlink in
20 * @name: name of the symlink
21 * @target: target node for the symlink to point to
38 kn->symlink.target_kn = target; kernfs_create_link()
39 kernfs_get(target); /* ref owned by symlink */ kernfs_create_link()
105 struct kernfs_node *target = kn->symlink.target_kn; kernfs_getlink()
H A Dkernfs-internal.h115 * symlink.c
/linux-4.1.27/fs/autofs4/
H A DMakefile7 autofs4-objs := init.o inode.o root.o symlink.o waitq.o expire.o dev-ioctl.o
H A Dsymlink.c3 * linux/fs/autofs/symlink.c
H A Dexpire.c378 DPRINTK("checking symlink %p %pd", dentry, dentry); should_expire()
380 * A symlink can't be "busy" in the usual sense so should_expire()
H A Droot.c63 .symlink = autofs4_dir_symlink,
370 * If the dentry is a symlink it's equivalent to a directory autofs4_d_automount()
/linux-4.1.27/fs/configfs/
H A DMakefile7 configfs-objs := inode.o file.o dir.o symlink.o mount.o item.o
H A Dsymlink.c4 * symlink.c - operations for configfs symlinks.
193 ret = -EPERM; /* What lack-of-symlink returns */ configfs_unlink()
H A Ddir.c1358 * Ensure that no racing symlink() will make detach_prep() fail while configfs_rmdir()
1430 .symlink = configfs_symlink,
/linux-4.1.27/fs/efs/
H A DMakefile7 efs-objs := super.o inode.o namei.o dir.o file.o symlink.o
H A Dsymlink.c2 * symlink.c
/linux-4.1.27/fs/sysv/
H A DMakefile8 namei.o super.o symlink.o
H A Dsymlink.c2 * linux/fs/sysv/symlink.c
H A Dnamei.c284 .symlink = sysv_symlink,
/linux-4.1.27/fs/udf/
H A DMakefile8 partition.o super.o truncate.o symlink.o \
H A Dsymlink.c2 * symlink.c
105 unsigned char *symlink; udf_symlink_filler() local
122 symlink = iinfo->i_ext.i_data + iinfo->i_lenEAttr; udf_symlink_filler()
131 symlink = bh->b_data; udf_symlink_filler()
134 err = udf_pc_to_char(inode->i_sb, symlink, inode->i_size, p, PAGE_SIZE); udf_symlink_filler()
H A Dudf_i.h20 * the file/symlink, a fact whether data are in-inode or in external data
H A Dnamei.c19 * 04/19/99 blf link, mknod, symlink support
1289 .symlink = udf_symlink,
/linux-4.1.27/fs/ufs/
H A DMakefile8 namei.o super.o symlink.o truncate.o util.o
H A Dsymlink.c2 * linux/fs/ufs/symlink.c
12 * linux/fs/ext2/symlink.c
21 * linux/fs/minix/symlink.c
25 * ext2 symlink handling code
H A Dnamei.c138 /* slow symlink */ ufs_symlink()
145 /* fast symlink */ ufs_symlink()
351 .symlink = ufs_symlink,
H A Dufs.h139 /* symlink.c */
H A Dufs_fs.h480 __fs32 fs_maxsymlinklen;/* max length of an internal symlink */
622 __u8 ui_symlink[4*(UFS_NDADDR+UFS_NINDIR)];/* 0x28 fast symlink */
676 __u8 ui_symlink[2*4*(UFS_NDADDR+UFS_NINDIR)];/* 0x28 fast symlink */
944 __fs32 fs_maxsymlinklen;/* max length of an internal symlink */
/linux-4.1.27/fs/affs/
H A DMakefile9 affs-objs := super.o namei.o inode.o file.o dir.o amigaffs.o bitmap.o symlink.o
H A Dsymlink.c2 * linux/fs/affs/symlink.c
8 * affs symlink handling code
H A Ddir.c35 .symlink = affs_symlink,
/linux-4.1.27/fs/ncpfs/
H A DMakefile10 ncpfs-$(CONFIG_NCPFS_EXTRAS) += symlink.o
11 ncpfs-$(CONFIG_NCPFS_NFS_NS) += symlink.o
H A Dsymlink.c2 * linux/fs/ncpfs/symlink.c
10 * When using the NFS namespace, we set the mode to indicate a symlink and
13 * from linux/fs/ext2/symlink.c
17 * ncpfs symlink handling code
34 /* these magic numbers must appear in the symlink file -- this makes it a bit
125 /* EPERM is returned by VFS if symlink procedure does not exist */ ncp_symlink()
146 symlink can point out of ncp filesystem */ ncp_symlink()
H A Dncp_fs.h83 /* linux/fs/ncpfs/symlink.c */
/linux-4.1.27/fs/jfs/
H A DMakefile10 jfs_extent.o symlink.o jfs_metapage.o \
H A Dnamei.c858 * FUNCTION: creates a symbolic link to <symlink> by name <name>
931 /* fix symlink access permission jfs_symlink()
954 * if symlink is > 128 bytes, we don't have the space to jfs_symlink()
960 jfs_info("jfs_symlink: fast symlink added ssize:%d name:%s ", jfs_symlink()
973 * even though the data of symlink object (source jfs_symlink()
1513 .symlink = jfs_symlink,
H A Djfs_incore.h90 unchar _inline[128]; /* 128: inline symlink */
/linux-4.1.27/fs/coda/
H A DMakefile8 coda_linux.o symlink.o pioctl.o sysctl.o
H A Ddir.c133 /* creation routines: create, mknod, mkdir, link, symlink */ coda_create()
562 .symlink = coda_symlink,
H A Dupcall.c413 offset = INSIZE(symlink); venus_symlink()
414 insize = max_t(unsigned int, offset + len + symlen + 8, OUTSIZE(symlink)); venus_symlink()
/linux-4.1.27/fs/ext2/
H A DMakefile8 ioctl.o namei.o super.o symlink.o
H A Dsymlink.c2 * linux/fs/ext2/symlink.c
13 * linux/fs/minix/symlink.c
17 * ext2 symlink handling code
H A Dnamei.c180 /* slow symlink */ ext2_symlink()
190 /* fast symlink */ ext2_symlink()
404 .symlink = ext2_symlink,
/linux-4.1.27/fs/ext3/
H A DMakefile8 ioctl.o namei.o super.o symlink.o hash.o resize.o ext3_jbd.o
H A Dsymlink.c2 * linux/fs/ext3/symlink.c
13 * linux/fs/minix/symlink.c
17 * ext3 symlink handling code
H A Dnamei.c1984 * not a directory, not a symlink and ->i_nlink > 0. ext3_orphan_add()
2247 * Fast symlink. We have to add entry to directory ext3_symlink()
2277 * we have to stop transaction now and restart it when symlink ext3_symlink()
2558 .symlink = ext3_symlink,
/linux-4.1.27/tools/testing/selftests/exec/
H A DMakefile3 DEPS = execveat.symlink execveat.denatured script subdir
12 execveat.symlink: execveat
H A Dexecveat.c216 char *fullname_symlink = concat(fullname, ".symlink"); run_tests()
225 int fd_symlink = open_or_die("execveat.symlink", O_RDONLY); run_tests()
283 fail += check_execveat(dot_dfd, "execveat.symlink", 0); run_tests()
284 fail += check_execveat(dot_dfd_path, "execveat.symlink", 0); run_tests()
294 fail += check_execveat_fail(dot_dfd, "execveat.symlink", run_tests()
296 fail += check_execveat_fail(dot_dfd_path, "execveat.symlink", run_tests()
/linux-4.1.27/drivers/usb/gadget/function/
H A Du_ecm.h30 * and create symlink/remove symlink.
H A Du_eem.h30 * and create symlink/remove symlink.
H A Du_gether.h30 * and create symlink/remove symlink.
H A Du_midi.h33 * and create symlink/remove symlink.
H A Du_ncm.h30 * and create symlink/remove symlink.
H A Du_printer.h31 * and create symlink/remove symlink
H A Dg_zero.h37 * and create symlink/remove symlink.
52 * and create symlink/remove symlink.
H A Du_hid.h33 * and create symlink/remove symlink.
H A Du_rndis.h36 * and create symlink/remove symlink.
H A Df_mass_storage.h91 * and create symlink/remove symlink.
H A Du_uvc.h80 * read/write and symlink creation/removal.
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
H A DMakefile4 rw.o namei.o symlink.o llite_mmap.o \
H A Dsymlink.c62 * printing just the last part of the symlink. */ ll_readlink_internal()
63 CDEBUG(D_INODE, "using cached symlink %s%.*s, len = %d\n", ll_readlink_internal()
93 CERROR("inode %lu: symlink length %d not expected %d\n", ll_readlink_internal()
103 CERROR("inode %lu: symlink not NULL terminated string of length %d\n", ll_readlink_internal()
110 /* do not return an error if we cannot cache the symlink locally */ ll_readlink_internal()
129 /* Limit the recursive symlink depth to 5 instead of default ll_follow_link()
/linux-4.1.27/fs/ext4/
H A DMakefile8 ioctl.o namei.o super.o symlink.o hash.o resize.o extents.o \
H A Dsymlink.c2 * linux/fs/ext4/symlink.c
13 * linux/fs/minix/symlink.c
17 * ext4 symlink handling code
H A Dext4_crypto.h147 * store a filename of length l in encrypted symlink format.
H A Dmigrate.c458 * don't migrate fast symlink ext4_ext_migrate()
/linux-4.1.27/fs/ocfs2/
H A Dsymlink.h4 * symlink.h
33 * Test whether an inode is a fast symlink.
H A DMakefile38 symlink.o \
H A Dsymlink.c4 * linux/cluster/ssi/cfs/symlink.c
27 * Jun 7 1999, cache symlink lookups in the page cache. -DaveM
31 * ocfs2 symlink handling code.
51 #include "symlink.h"
H A Dextent_map.c40 #include "symlink.h"
710 * with the fast symlink, cause they have no difference for extent
773 * Handle inline-data and fast symlink separately. ocfs2_fiemap()
H A Djournal.h418 /* data block for new dir/symlink, allocation of directory block, dx_root
431 * alloc group descriptor + mkdir/symlink blocks + dir blocks + xattr
H A Daops.c47 #include "symlink.h"
94 /* We don't use the page cache to create symlink data, so if ocfs2_symlink_get_block()
102 mlog(ML_ERROR, "couldn't getblock for symlink!\n"); ocfs2_symlink_get_block()
H A Dnamei.c60 #include "symlink.h"
2888 .symlink = ocfs2_symlink,
/linux-4.1.27/fs/jffs2/
H A DMakefile10 jffs2-y += symlink.o build.o erase.o background.o fs.o writev.o
H A Dsymlink.c43 * 2. Nobody uses f->target (if the inode is symlink's inode). The jffs2_follow_link()
51 pr_err("%s(): can't find symlink target\n", __func__); jffs2_follow_link()
H A Djffs2_fs_i.h45 /* The target path if this is the inode of a symlink */
H A Dos-linux.h162 /* symlink.c */
H A Ddir.c56 .symlink = jffs2_symlink,
358 jffs2_dbg(1, "%s(): symlink's target '%s' cached\n", jffs2_symlink()
H A Dreadinode.c1241 /* Hack to work around broken isize in old symlink code. jffs2_do_read_inode_internal()
1250 * keep in RAM to facilitate quick follow symlink jffs2_do_read_inode_internal()
1260 JFFS2_ERROR("can't allocate %u bytes of memory for the symlink target path cache\n", csize); jffs2_do_read_inode_internal()
1280 dbg_readinode("symlink's target '%s' cached\n", f->target); jffs2_do_read_inode_internal()
H A Dfs.c72 jffs2_dbg(1, "%s(): Writing %d bytes of symlink target\n", jffs2_do_setattr()
/linux-4.1.27/fs/nfs/
H A Dsymlink.c2 * linux/fs/nfs/symlink.c
8 * Jun 7 1999, cache symlink lookups in the page cache. -DaveM
10 * nfs symlink handling code
H A DMakefile9 direct.o pagelist.o read.o symlink.o unlink.o \
H A Dnfs3proc.c273 struct nfs3_symlinkargs symlink; member in union:nfs3_createdata::__anon11076
525 dprintk("NFS call symlink %pd\n", dentry); nfs3_proc_symlink()
531 data->arg.symlink.fromfh = NFS_FH(dir); nfs3_proc_symlink()
532 data->arg.symlink.fromname = dentry->d_name.name; nfs3_proc_symlink()
533 data->arg.symlink.fromlen = dentry->d_name.len; nfs3_proc_symlink()
534 data->arg.symlink.pages = &page; nfs3_proc_symlink()
535 data->arg.symlink.pathlen = len; nfs3_proc_symlink()
536 data->arg.symlink.sattr = sattr; nfs3_proc_symlink()
542 dprintk("NFS reply symlink: %d\n", status); nfs3_proc_symlink()
892 .symlink = nfs_symlink,
947 .symlink = nfs3_proc_symlink,
H A Dproc.c402 dprintk("NFS call symlink %pd\n", dentry); nfs_proc_symlink()
428 dprintk("NFS reply symlink: %d\n", status); nfs_proc_symlink()
684 .symlink = nfs_symlink,
723 .symlink = nfs_proc_symlink,
H A Ddir.c1263 * procfs-style symlink. Just assume it's correct for now, but we may nfs_weak_revalidate()
1887 * symlink request has completed on the server.
1902 dfprintk(VFS, "NFS: symlink(%s/%lu, %pd, %s)\n", dir->i_sb->s_id, nfs_symlink()
1922 error = NFS_PROTO(dir)->symlink(dir, dentry, page, pathlen, &attr); nfs_symlink()
1925 dfprintk(VFS, "NFS: symlink(%s/%lu, %pd, %s) error %d\n", nfs_symlink()
H A Dnfs3xdr.c934 * nfs_fh3 symlink;
1090 * symlinkdata3 symlink;
2516 PROC(SYMLINK, symlink, create, 0),
H A Dnfs4xdr.c1154 *p = cpu_to_be32(create->u.symlink.len); encode_create()
1155 xdr_write_pages(xdr, create->u.symlink.pages, 0, create->u.symlink.len); encode_create()
3293 dprintk("%s: symlink support=%s\n", __func__, *res == 0 ? "false" : "true"); decode_attr_symlink_support()
5136 /* Convert length of symlink */ decode_readlink()
5142 dprintk("nfs: server returned giant symlink!\n"); decode_readlink()
/linux-4.1.27/fs/squashfs/
H A Dsymlink.c21 * symlink.c
63 * Skip index bytes into symlink metadata. squashfs_symlink_readpage()
69 ERROR("Unable to read symlink [%llx:%x]\n", squashfs_symlink_readpage()
77 * Read length bytes from symlink metadata. Squashfs_read_metadata squashfs_symlink_readpage()
86 ERROR("Unable to read symlink [%llx:%x]\n", squashfs_symlink_readpage()
H A Dsquashfs.h108 /* symlink.c */
H A Dsquashfs_fs.h336 char symlink[0]; member in struct:squashfs_symlink_inode
405 struct squashfs_symlink_inode symlink; member in union:squashfs_inode
H A Dinode.c284 struct squashfs_symlink_inode *sqsh_ino = &squashfs_ino.symlink; squashfs_read_inode()
/linux-4.1.27/fs/xfs/
H A Dxfs_symlink.c97 "symlink header does not match required off/len/owner (0x%x/Ox%x,0x%llx)", xfs_readlink_bmap()
144 xfs_alert(mp, "%s: inode (%llu) bad symlink length (%lld)", xfs_readlink()
229 * The symlink will fit into the inode data fork? xfs_symlink()
281 * Allocate an inode for the symlink. xfs_symlink()
306 * If the symlink will fit into the inode, write it inline. xfs_symlink()
375 * Create the directory entry for the symlink. xfs_symlink()
386 * symlink transaction goes to disk before returning to xfs_symlink()
434 * Free a symlink that has blocks associated with it.
456 * We're freeing a symlink that has some xfs_inactive_symlink_rmt()
562 * xfs_inactive_symlink - free a symlink
588 xfs_alert(mp, "%s: inode (0x%llx) bad symlink length (%d)", xfs_inactive_symlink()
606 /* remove the remote symlink */ xfs_inactive_symlink()
H A Dxfs_symlink.h20 /* Kernel only symlink defintions */
H A Dxfs_iops.c1125 .symlink = xfs_vn_symlink,
1153 .symlink = xfs_vn_symlink,
/linux-4.1.27/include/linux/
H A Dshmem_fs.h20 char *symlink; /* unswappable short symlink */ member in union:shmem_inode_info::__anon12428
H A Dconfigfs.h211 * If allow_link() exists, the item can symlink(2) out to other
H A Dnfs_fs.h470 * linux/fs/nfs/symlink.c
H A Dkernfs.h127 struct kernfs_elem_symlink symlink; member in union:kernfs_node::__anon11883
H A Dnfs_xdr.h861 } symlink; /* NF4LNK */ member in union:nfs4_create_arg::__anon12301
1475 int (*symlink) (struct inode *, struct dentry *, struct page *, member in struct:nfs_rpc_ops
H A Dmm_types.h422 /* store ref to file /proc/<pid>/exe symlink points to */
/linux-4.1.27/security/tomoyo/
H A Daudit.c248 const char *symlink = NULL; tomoyo_init_log() local
265 symlink = r->obj->symlink_target->name; tomoyo_init_log()
266 /* +18 is for " symlink.target=\"%s\"" */ tomoyo_init_log()
267 len += 18 + strlen(symlink); tomoyo_init_log()
280 } else if (symlink) tomoyo_init_log()
281 pos += snprintf(buf + pos, len - pos, " symlink.target=\"%s\"", tomoyo_init_log()
282 symlink); tomoyo_init_log()
H A Dcondition.c790 struct tomoyo_path_info *symlink; tomoyo_condition() local
794 symlink = obj ? obj->symlink_target : NULL; tomoyo_condition()
795 if (!symlink || tomoyo_condition()
796 !tomoyo_compare_name_union(symlink, ptr) tomoyo_condition()
H A Dcommon.c34 [TOMOYO_MAC_FILE_SYMLINK] = "symlink",
86 [TOMOYO_TYPE_IS_SYMLINK] = "symlink",
105 [TOMOYO_SYMLINK_TARGET] = "symlink.target",
150 [TOMOYO_TYPE_SYMLINK] = "symlink",
1941 char *symlink = NULL; tomoyo_add_entry() local
1963 symlink = strstr(header, " symlink.target=\""); tomoyo_add_entry()
1964 if (symlink) tomoyo_add_entry()
1965 len += tomoyo_truncate(symlink + 1) + 1; tomoyo_add_entry()
1975 if (symlink) tomoyo_add_entry()
1976 tomoyo_addprintf(buffer, len, "%s", symlink); tomoyo_add_entry()
H A Dcommon.h597 * than symlink().
702 * "file symlink", "file chroot" and "file unmount" directive.
H A Ddomain.c700 /* Get symlink's pathname of program. */ tomoyo_find_next_domain()
H A Dfile.c776 * tomoyo_path_perm - Check permission for "unlink", "rmdir", "truncate", "symlink", "append", "chroot" and "unmount".
/linux-4.1.27/fs/afs/
H A Dmntpt.c63 /* read the contents of the symlink into the pagecache */ afs_mntpt_check_symlink()
77 /* examine the symlink's contents */ afs_mntpt_check_symlink()
79 _debug("symlink to %*.*s", (int) size, (int) size, buf); afs_mntpt_check_symlink()
85 _debug("symlink is a mountpoint"); afs_mntpt_check_symlink()
171 /* read the contents of the AFS special symlink */ afs_mntpt_do_automount()
H A Dfile.c123 * read page from file, directory or symlink, given a key to use
212 * read page from file, directory or symlink, given a file to nominate the key
H A Dinode.c242 /* it's a symlink we just created (the fileserver afs_iget()
297 * directory or symlink */ afs_zap_data()
308 * symlink)
H A Dsecurity.c80 * symlink
334 AFS_ACE_INSERT | /* create, mkdir, symlink, rename to */ afs_permission()
H A Ddir.c56 .symlink = afs_symlink,
1013 * create a symlink in an AFS filesystem
/linux-4.1.27/fs/cifs/
H A Dlink.c193 /* it's not a symlink */ couldbe_mf_symlink()
197 /* it's not a symlink */ couldbe_mf_symlink()
259 if (bytes_read == 0) { /* not a symlink */ query_mf_symlink()
281 /* it's not a symlink */ check_mf_symlink()
297 if (bytes_read == 0) /* not a symlink */ check_mf_symlink()
302 /* it's not a symlink */ check_mf_symlink()
310 /* it is a symlink */ check_mf_symlink()
352 /* it's not a symlink */ cifs_query_mf_symlink()
452 /* it's not a symlink */ smb3_query_mf_symlink()
524 /* Make sure we wrote all of the symlink data */ smb3_create_mf_symlink()
735 cifs_dbg(FYI, "Create symlink ok, getinodeinfo fail rc = %d\n", cifs_symlink()
H A Dsmb2inode.c130 FILE_ALL_INFO *data, bool *adjust_tz, bool *symlink) smb2_query_path_info()
136 *symlink = false; smb2_query_path_info()
147 *symlink = true; smb2_query_path_info()
128 smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, const char *full_path, FILE_ALL_INFO *data, bool *adjust_tz, bool *symlink) smb2_query_path_info() argument
H A Dsmb2ops.c987 struct smb2_symlink_err_rsp *symlink; smb2_query_symlink() local
1009 /* open must fail on symlink - reset rc */ smb2_query_symlink()
1011 symlink = (struct smb2_symlink_err_rsp *)err_buf->ErrorData; smb2_query_symlink()
1012 sub_len = le16_to_cpu(symlink->SubstituteNameLength); smb2_query_symlink()
1013 sub_offset = le16_to_cpu(symlink->SubstituteNameOffset); smb2_query_symlink()
1015 (char *)symlink->PathBuffer + sub_offset, smb2_query_symlink()
H A Dsmb2proto.h64 bool *adjust_tz, bool *symlink);
H A Dsmb1ops.c546 FILE_ALL_INFO *data, bool *adjustTZ, bool *symlink) cifs_query_path_info()
550 *symlink = false; cifs_query_path_info()
585 *symlink = true; cifs_query_path_info()
544 cifs_query_path_info(const unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, const char *full_path, FILE_ALL_INFO *data, bool *adjustTZ, bool *symlink) cifs_query_path_info() argument
H A Dinode.c588 bool symlink) cifs_all_info_to_fattr()
616 if (symlink) { cifs_all_info_to_fattr()
720 bool symlink = false; cifs_get_inode_info() local
750 data, &adjust_tz, &symlink); cifs_get_inode_info()
755 symlink); cifs_get_inode_info()
586 cifs_all_info_to_fattr(struct cifs_fattr *fattr, FILE_ALL_INFO *info, struct cifs_sb_info *cifs_sb, bool adjust_tz, bool symlink) cifs_all_info_to_fattr() argument
H A Dsmb2misc.c176 /* create failed on symlink */ smb2_check_message()
H A Dcifspdu.h2695 /* xsymlink is a symlink format (used by MacOS) that can be used
2696 to save symlink info in a regular file when
2700 as containing symlink data:
/linux-4.1.27/fs/xfs/libxfs/
H A Dxfs_symlink_remote.c75 * Checking of the symlink header is split into two parts. the verifier does
190 * As this symlink fits in an inode literal area, it must also fit in xfs_symlink_local_to_remote()
H A Dxfs_trans_resv.h39 struct xfs_trans_res tr_symlink; /* symlink trans */
H A Dxfs_fs.h65 #define XFS_XFLAG_NOSYMLINKS 0x00000400 /* disallow symlink creation */
H A Dxfs_format.h981 #define XFS_DIFLAG_NOSYMLINKS_BIT 10 /* disallow symlink creation */
1138 * Remote symlink format and access functions.
/linux-4.1.27/arch/um/os-Linux/
H A Duser_syms.c80 EXPORT_SYMBOL_PROTO(symlink); variable
/linux-4.1.27/fs/befs/
H A Dbefs.h69 char symlink[BEFS_SYMLINK_LEN]; member in union:befs_inode_info::__anon10752
H A Dlinuxvfs.c384 strlcpy(befs_ino->i_data.symlink, raw_inode->data.symlink, befs_iget()
412 "directory or symlink. THAT IS WRONG! BeFS has no " befs_iget()
480 befs_error(sb, "Long symlink with illegal length"); befs_follow_link()
483 befs_debug(sb, "Follow long symlink"); befs_follow_link()
490 befs_error(sb, "Failed to read entire long symlink"); befs_follow_link()
506 nd_set_link(nd, befs_ino->i_data.symlink); befs_fast_follow_link()
H A Dbefs_fs_types.h193 char symlink[BEFS_SYMLINK_LEN]; member in union:__anon10759::__anon10760
H A Ddatastream.c116 * befs_read_lsmylink - read long symlink from datastream.
119 * @buff: Buffer in which to place long symlink data
120 * @len: Length of the long symlink in bytes
H A Ddebug.c105 befs_debug(sb, " Symbolic link [%s]", inode->data.symlink); befs_dump_inode()
/linux-4.1.27/fs/exofs/
H A Dnamei.c115 /* slow symlink */ exofs_symlink()
124 /* fast symlink */ exofs_symlink()
310 .symlink = exofs_symlink,
H A Dexofs.h89 uint32_t i_data[EXOFS_IDATA];/*short symlink names and device #s*/
210 /* symlink.c */
H A Dcommon.h180 __le32 i_data[EXOFS_IDATA]; /* Short symlink names and device #s */
/linux-4.1.27/fs/hpfs/
H A Dnamei.c293 static int hpfs_symlink(struct inode *dir, struct dentry *dentry, const char *symlink) hpfs_symlink() argument
336 result->i_size = strlen(symlink); hpfs_symlink()
350 hpfs_set_ea(result, fnode, "SYMLINK", symlink, strlen(symlink)); hpfs_symlink()
620 .symlink = hpfs_symlink,
/linux-4.1.27/fs/9p/
H A Dvfs_inode.c1226 * v9fs_readlink - read a symlink's location (internal version)
1227 * @dentry: dentry for symlink
1228 * @buffer: buffer to load symlink location into
1274 * v9fs_vfs_follow_link - follow a symlink path
1275 * @dentry: dentry for symlink
1304 * v9fs_vfs_put_link - release a symlink path
1305 * @dentry: dentry for symlink
1355 * @dir: directory inode containing symlink
1356 * @dentry: dentry for symlink
1357 * @symname: symlink data
1500 .symlink = v9fs_vfs_symlink,
H A Dvfs_inode_dotl.c905 * v9fs_vfs_follow_link_dotl - follow a symlink path
906 * @dentry: dentry for symlink
980 .symlink = v9fs_vfs_symlink_dotl,
/linux-4.1.27/drivers/iio/adc/
H A Dti-adc128s052.c6 * http://www.ti.com/lit/ds/symlink/adc128s052.pdf
/linux-4.1.27/fs/nfsd/
H A Dxdr.h127 struct nfsd_symlinkargs symlink; member in union:nfsd_xdrstore
H A Dnfs3proc.c124 * Read a symlink.
134 /* Read the symlink. */ nfsd3_proc_readlink()
H A Dnfsproc.c96 * Read a symlink.
106 /* Read the symlink. */ nfsd_proc_readlink()
H A Dvfs.c1497 * Read a symlink. On entry, *lenp must contain the maximum path length that
1544 * Create a symlink and look up its inode
/linux-4.1.27/fs/ceph/
H A Dstrings.c71 case CEPH_MDS_OP_SYMLINK: return "symlink"; ceph_mds_op_name()
H A Dmds_client.h41 char *symlink; member in struct:ceph_mds_reply_info_in
H A Dfile.c104 dout("init_file %p %p 0%o (symlink)\n", inode, file, ceph_init_file()
227 * file or symlink, return 1 so the VFS can retry.
295 /* make vfs retry on splice, ENOENT, or symlink */ ceph_atomic_open()
H A Ddir.c761 dout("symlink in dir %p dentry %p to '%s'\n", dir, dentry, dest); ceph_symlink()
1378 .symlink = ceph_symlink,
H A Dinode.c812 sym = kstrndup(iinfo->symlink, symlen, GFP_NOFS); fill_inode()
1177 * mknod symlink mkdir : null -> new inode ceph_fill_trace()
/linux-4.1.27/fs/freevxfs/
H A Dvxfs_immed.c65 * vxfs_immed_follow_link - follow immed symlink
/linux-4.1.27/drivers/i2c/
H A Di2c-mux.c191 "can't create symlink to mux device\n"); i2c_add_mux_adapter()
195 "can't create symlink for channel %u\n", chan_id); i2c_add_mux_adapter()
/linux-4.1.27/drivers/base/
H A Ddevcoredump.c275 /* nothing - symlink will be missing */; dev_coredumpm()
279 /* nothing - symlink will be missing */; dev_coredumpm()
/linux-4.1.27/net/bridge/
H A Dbr_sysfs_if.c272 * Puts symlink in bridge's brif subdirectory
295 /* Rename bridge's brif symlink */ br_sysfs_renameif()
/linux-4.1.27/scripts/package/
H A DMakefile15 # c) Build a tar ball, using symlink to make kernel version
19 # - Use /. to avoid tar packing just the symlink
/linux-4.1.27/fs/f2fs/
H A Dnamei.c306 /* this is broken symlink case */ f2fs_follow_link()
344 * Let's flush symlink data in order to avoid broken symlink as much as f2fs_symlink()
349 * If the symlink path is stored into inline_data, there is no f2fs_symlink()
789 .symlink = f2fs_symlink,
/linux-4.1.27/fs/
H A Dnamei.c49 * The new code replaces the old recursive symlink resolution with
50 * an iterative one (in case of non-nested symlink chains). It does
60 * [29-Apr-1998 C. Scott Ananian] Updated above description of symlink
63 * Note that the symlink resolution is not *completely* iterative.
72 * New symlink semantics: when open() is called with flags O_CREAT | O_EXCL
73 * and the name already exists in form of a symlink, try to create the new
74 * name indicated by the symlink. The old code always complained that the
75 * name already exists, due to not following the symlink even if its target
77 * the name is a symlink pointing to a non-existent name.
83 * Note that "ln old new" where "new" is a symlink pointing to a non-existing
88 /* [16-Dec-97 Kevin Buhr] For security reasons, we change some symlink
91 * [10-Sep-98 Alan Modra] Another symlink change.
758 * may_follow_link - Check symlink following for unsafe situations
759 * @link: The path of the symlink
763 * CAP_DAC_OVERRIDE needs to be specifically ignored if the symlink is
768 * world-writable directory, or when the uid of the symlink and follower
769 * match, or when the directory owner matches the symlink's owner.
771 * Returns 0 if following the symlink is allowed, -ve on error.
1651 * This limits recursive symlink follows to 8, while
2286 * cases where it won't are if nd->last refers to a symlink or the path is
2295 * symlink that needs to be followed. "path" will also be populated.
2298 * 1: if we successfully resolved nd->last and found it to be a symlink
2332 * so that means that this dentry is probably a symlink or the mountpoint_last()
3043 * possible mount and symlink following (this might be optimized away if do_last()
3266 while (unlikely(error > 0)) { /* trailing symlink */ path_openat()
3885 if (!dir->i_op->symlink) vfs_symlink()
3892 error = dir->i_op->symlink(dir, dentry, oldname); vfs_symlink()
3930 SYSCALL_DEFINE2(symlink, const char __user *, oldname, const char __user *, newname) SYSCALL_DEFINE2()
H A Dbad_inode.c132 .symlink = bad_inode_symlink,
H A Dfhandle.c85 * @flag: flag value to indicate whether to follow symlink or not
/linux-4.1.27/drivers/gpio/
H A Dgpiolib-sysfs.c632 * @dev: device under which to create symlink
633 * @name: name of the symlink
634 * @gpio: gpio to create symlink to, already exported
636 * Set up a symlink from /sys/.../dev/name to /sys/class/gpio/gpioN
/linux-4.1.27/fs/logfs/
H A Ddir.c18 * Create, link, mkdir, mknod and symlink all share the same function to do
428 /* symlink */ __logfs_create()
439 /* FIXME: truncate symlink */ __logfs_create()
792 .symlink = logfs_symlink,
/linux-4.1.27/fs/minix/
H A Dnamei.c263 .symlink = minix_symlink,
/linux-4.1.27/security/apparmor/
H A Daudit.c34 "symlink",
/linux-4.1.27/fs/gfs2/
H A Dinode.c460 * @symname: The symlink destination (if a symlink)
1165 * gfs2_symlink - Create a symlink
1166 * @dir: The directory to create the symlink in
1167 * @dentry: The dentry to put the symlink in
1942 .symlink = gfs2_symlink,
/linux-4.1.27/fs/nilfs2/
H A Dnamei.c165 /* slow symlink */ nilfs_symlink()
558 .symlink = nilfs_symlink,
/linux-4.1.27/drivers/media/pci/cx18/
H A Dcx18-alsa-main.c123 /* sc->shortname is a symlink in /proc/asound: CX18-M -> cardN */ snd_cx18_card_set_names()
/linux-4.1.27/drivers/media/pci/ivtv/
H A Divtv-alsa-main.c123 /* sc->shortname is a symlink in /proc/asound: IVTV-M -> cardN */ snd_ivtv_card_set_names()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
H A Dthermal.c205 ath10k_err(ar, "failed to create thermal symlink\n"); ath10k_thermal_register()
/linux-4.1.27/drivers/rtc/
H A Drtc-bq32k.c12 * http://www.ti.com/lit/ds/symlink/bq32000.pdf
/linux-4.1.27/drivers/hwmon/
H A Dads1015.c8 * Datasheet available at: http://focus.ti.com/lit/ds/symlink/ads1015.pdf
H A Dina2xx.c141 * http://www.ti.com/lit/ds/symlink/ina226.pdf.
H A Dacpi_power_meter.c602 /* Create a symlink to domain objects */ read_domain_devices()
/linux-4.1.27/fs/overlayfs/
H A Doverlayfs.h89 pr_debug("symlink(\"%s\", %pd2) = %i\n", oldname, dentry, err); ovl_do_symlink()
H A Ddir.c945 .symlink = ovl_symlink,
/linux-4.1.27/fs/ramfs/
H A Dinode.c144 .symlink = ramfs_symlink,
/linux-4.1.27/fs/hostfs/
H A Dhostfs_user.c281 err = symlink(to, from); make_symlink()
H A Dhostfs_kern.c884 .symlink = hostfs_symlink,
/linux-4.1.27/arch/powerpc/include/asm/
H A Dsystbl.h90 SYSCALL_SPU(symlink)
/linux-4.1.27/net/ceph/
H A Ddebugfs.c28 * .../bdi - symlink to ../../bdi/something
/linux-4.1.27/net/sunrpc/
H A Ddebugfs.c159 /* no "debugfs" dentry? Don't bother with the symlink. */ rpc_clnt_debugfs_register()
/linux-4.1.27/scripts/
H A Dgen_initramfs_list.sh65 # symlink test must come before file test
/linux-4.1.27/tools/thermal/tmon/
H A Dtmon.c166 syslog(LOG_ERR, "Log file is a symlink. Will not log\n"); prepare_logging()
/linux-4.1.27/fs/isofs/
H A Drock.c689 * readpage() for symlinks: reads symlink contents into the page and either
796 printk("symlink spans iso9660 blocks\n"); rock_ridge_symlink_readpage()
/linux-4.1.27/include/net/9p/
H A D9p.h82 * @P9_TSYMLINK: make symlink request
83 * @P9_RSYMLINK: make symlink response
/linux-4.1.27/include/linux/ceph/
H A Dceph_fs.h290 * & 0x010000 -> follow symlink (e.g. stat(), not lstat()).
475 /* followed by frag array, symlink string, dir layout, xattr blob */
/linux-4.1.27/tools/perf/util/
H A Dbuild-id.c390 if (symlink(targetname, linkname) == 0) build_id_cache__add_s()
/linux-4.1.27/fs/reiserfs/
H A Dnamei.c826 retval = reiserfs_new_inode(&th, dir, mode, NULL /*symlink */ , reiserfs_mkdir()
1616 .symlink = reiserfs_symlink,
1632 * symlink operations.. same as page_symlink_inode_operations, with xattr
H A Dinode.c1865 * containing the body of symlink
1891 "i/o failure occurred creating new symlink"); reiserfs_new_symlink()
1902 /* insert item, that is body of symlink */ reiserfs_new_symlink()
1909 * directory) or reiserfs_new_symlink (to insert symlink body if new
1910 * object is symlink) or nothing (if new object is regular file)
1920 * @symname: symlink contents if inode is symlink
2003 /* symlink cannot be immutable or append only, right? */ reiserfs_new_inode()
2090 /* insert body of symlink */ reiserfs_new_inode()
H A Dprints.c352 * symlink.c 17000 - 17999
/linux-4.1.27/drivers/clk/
H A Dclk-cdce706.c6 * Reference: http://www.ti.com/lit/ds/symlink/cdce706.pdf
/linux-4.1.27/fs/romfs/
H A Dsuper.c85 S_IFLNK | 0777, /* symlink */
/linux-4.1.27/fs/hfsplus/
H A Ddir.c556 .symlink = hfsplus_symlink,
/linux-4.1.27/include/uapi/linux/
H A Dcoda.h521 struct CodaFid VFid; /* Directory to put symlink in */
/linux-4.1.27/arch/s390/kernel/
H A Dcompat_wrapper.c90 COMPAT_SYSCALL_WRAP2(symlink, const char __user *, old, const char __user *, new);
/linux-4.1.27/arch/parisc/kernel/
H A Dsyscall_table.S158 ENTRY_SAME(symlink)
/linux-4.1.27/usr/
H A Dgen_init_cpio.c16 * External file lists, symlink, pipe and fifo support by Thayne Harbaugh
/linux-4.1.27/drivers/parisc/
H A Dpdc_stable.c334 /* Update the symlink to the real device */ pdcspath_hwpath_write()
1002 /* Add a nice symlink to the real device */ pdcs_register_pathentries()
/linux-4.1.27/mm/
H A Dshmem.c601 kfree(info->symlink); shmem_evict_inode()
2448 info->symlink = kmemdup(symname, len, GFP_KERNEL); shmem_symlink()
2449 if (!info->symlink) { shmem_symlink()
2479 nd_set_link(nd, SHMEM_I(d_inode(dentry))->symlink); shmem_follow_short_symlink()
3147 .symlink = shmem_symlink,
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
H A Ddebugfs-vif.c658 * Create symlink for convenience pointing to interface specific iwl_mvm_vif_dbgfs_register()
/linux-4.1.27/drivers/edac/
H A Dedac_device_sysfs.c824 /* create a symlink from the edac device edac_device_create_sysfs()
H A Dedac_pci_sysfs.c483 /* Remove the symlink */ edac_pci_remove_sysfs()
/linux-4.1.27/fs/fuse/
H A Dfuse_i.h730 * Initialize inode operations on a symlink
/linux-4.1.27/fs/btrfs/
H A Dsend.c1467 * An empty symlink inode. Can happen in rare error paths when read_symlink()
1468 * creating a symlink (transaction committed before the inode read_symlink()
1469 * eviction handler removed the symlink inode items and a crash read_symlink()
1472 * can delete the symlink. read_symlink()
1475 "Found empty symlink inode %llu at root %llu", read_symlink()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
H A Ddebugfs.c2420 * Create a symlink with mac80211. This is not very robust, as it does iwl_dbgfs_register()
2421 * not remove the symlink created. The implicit assumption is that iwl_dbgfs_register()
2423 * this symlink as part of its cleanup. iwl_dbgfs_register()

Completed in 3068 milliseconds

12