/linux-4.4.14/fs/ |
D | namespace.c | 81 static inline struct hlist_head *m_hash(struct vfsmount *mnt, struct dentry *dentry) in m_hash() argument 83 unsigned long tmp = ((unsigned long)mnt / L1_CACHE_BYTES); in m_hash() 100 static int mnt_alloc_id(struct mount *mnt) in mnt_alloc_id() argument 107 res = ida_get_new_above(&mnt_id_ida, mnt_id_start, &mnt->mnt_id); in mnt_alloc_id() 109 mnt_id_start = mnt->mnt_id + 1; in mnt_alloc_id() 117 static void mnt_free_id(struct mount *mnt) in mnt_free_id() argument 119 int id = mnt->mnt_id; in mnt_free_id() 132 static int mnt_alloc_group_id(struct mount *mnt) in mnt_alloc_group_id() argument 141 &mnt->mnt_group_id); in mnt_alloc_group_id() 143 mnt_group_start = mnt->mnt_group_id + 1; in mnt_alloc_group_id() [all …]
|
D | pnode.c | 32 static struct mount *get_peer_under_root(struct mount *mnt, in get_peer_under_root() argument 36 struct mount *m = mnt; in get_peer_under_root() 40 if (m->mnt_ns == ns && is_path_reachable(m, m->mnt.mnt_root, root)) in get_peer_under_root() 44 } while (m != mnt); in get_peer_under_root() 55 int get_dominating_id(struct mount *mnt, const struct path *root) in get_dominating_id() argument 59 for (m = mnt->mnt_master; m != NULL; m = m->mnt_master) { in get_dominating_id() 60 struct mount *d = get_peer_under_root(m, mnt->mnt_ns, root); in get_dominating_id() 68 static int do_make_slave(struct mount *mnt) in do_make_slave() argument 70 struct mount *peer_mnt = mnt, *master = mnt->mnt_master; in do_make_slave() 78 while ((peer_mnt = next_peer(peer_mnt)) != mnt && in do_make_slave() [all …]
|
D | pnode.h | 14 #define IS_MNT_SHARED(m) ((m)->mnt.mnt_flags & MNT_SHARED) 17 #define CLEAR_MNT_SHARED(m) ((m)->mnt.mnt_flags &= ~MNT_SHARED) 18 #define IS_MNT_UNBINDABLE(m) ((m)->mnt.mnt_flags & MNT_UNBINDABLE) 19 #define IS_MNT_MARKED(m) ((m)->mnt.mnt_flags & MNT_MARKED) 20 #define SET_MNT_MARK(m) ((m)->mnt.mnt_flags |= MNT_MARKED) 21 #define CLEAR_MNT_MARK(m) ((m)->mnt.mnt_flags &= ~MNT_MARKED) 22 #define IS_MNT_LOCKED(m) ((m)->mnt.mnt_flags & MNT_LOCKED) 35 static inline void set_mnt_shared(struct mount *mnt) in set_mnt_shared() argument 37 mnt->mnt.mnt_flags &= ~MNT_SHARED_MASK; in set_mnt_shared() 38 mnt->mnt.mnt_flags |= MNT_SHARED; in set_mnt_shared() [all …]
|
D | proc_namespace.c | 61 static void show_mnt_opts(struct seq_file *m, struct vfsmount *mnt) in show_mnt_opts() argument 75 if (mnt->mnt_flags & fs_infop->flag) in show_mnt_opts() 94 static int show_vfsmnt(struct seq_file *m, struct vfsmount *mnt) in show_vfsmnt() argument 97 struct mount *r = real_mount(mnt); in show_vfsmnt() 99 struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt }; in show_vfsmnt() 116 seq_puts(m, __mnt_is_readonly(mnt) ? " ro" : " rw"); in show_vfsmnt() 120 show_mnt_opts(m, mnt); in show_vfsmnt() 128 static int show_mountinfo(struct seq_file *m, struct vfsmount *mnt) in show_mountinfo() argument 131 struct mount *r = real_mount(mnt); in show_mountinfo() 132 struct super_block *sb = mnt->mnt_sb; in show_mountinfo() [all …]
|
D | mount.h | 34 struct vfsmount mnt; member 72 static inline struct mount *real_mount(struct vfsmount *mnt) in real_mount() argument 74 return container_of(mnt, struct mount, mnt); in real_mount() 77 static inline int mnt_has_parent(struct mount *mnt) in mnt_has_parent() argument 79 return mnt != mnt->mnt_parent; in mnt_has_parent() 82 static inline int is_mounted(struct vfsmount *mnt) in is_mounted() argument 85 return !IS_ERR_OR_NULL(real_mount(mnt)->mnt_ns); in is_mounted()
|
D | fhandle.c | 70 if (copy_to_user(mnt_id, &real_mount(path->mnt)->mnt_id, in do_sys_name_to_handle() 116 struct vfsmount *mnt; in get_vfsmount_from_fd() local 121 mnt = mntget(fs->pwd.mnt); in get_vfsmount_from_fd() 127 mnt = mntget(f.file->f_path.mnt); in get_vfsmount_from_fd() 130 return mnt; in get_vfsmount_from_fd() 144 path->mnt = get_vfsmount_from_fd(mountdirfd); in do_handle_to_path() 145 if (IS_ERR(path->mnt)) { in do_handle_to_path() 146 retval = PTR_ERR(path->mnt); in do_handle_to_path() 151 path->dentry = exportfs_decode_fh(path->mnt, in do_handle_to_path() 161 mntput(path->mnt); in do_handle_to_path() [all …]
|
D | namei.c | 477 mntget(path->mnt); in path_get() 491 mntput(path->mnt); in path_put() 572 struct vfsmount *mnt = path->mnt; in path_connected() local 575 if (mnt->mnt_root == mnt->mnt_sb->s_root) in path_connected() 578 return is_subdir(path->dentry, mnt->mnt_root); in path_connected() 611 if (nd->root.mnt && !(nd->flags & LOOKUP_ROOT)) { in terminate_walk() 613 nd->root.mnt = NULL; in terminate_walk() 618 nd->root.mnt = NULL; in terminate_walk() 628 int res = __legitimize_mnt(path->mnt, nd->m_seq); in legitimize_path() 631 path->mnt = NULL; in legitimize_path() [all …]
|
D | nsfs.c | 50 struct vfsmount *mnt = mntget(nsfs_mnt); in ns_get_path() local 60 mntput(mnt); in ns_get_path() 73 path->mnt = mnt; in ns_get_path() 78 inode = new_inode_pseudo(mnt->mnt_sb); in ns_get_path() 81 mntput(mnt); in ns_get_path() 91 dentry = d_alloc_pseudo(mnt->mnt_sb, &qname); in ns_get_path() 94 mntput(mnt); in ns_get_path()
|
D | file_table.c | 189 struct vfsmount *mnt = file->f_path.mnt; in __fput() local 220 __mnt_drop_write(mnt); in __fput() 223 file->f_path.mnt = NULL; in __fput() 227 mntput(mnt); in __fput()
|
D | open.c | 81 error = mnt_want_write(path->mnt); in vfs_truncate() 114 mnt_drop_write(path->mnt); in vfs_truncate() 398 if (__mnt_is_readonly(path.mnt)) in SYSCALL_DEFINE3() 509 error = mnt_want_write(path->mnt); in chmod_common() 527 mnt_drop_write(path->mnt); in chmod_common() 626 error = mnt_want_write(path.mnt); in SYSCALL_DEFINE5() 630 mnt_drop_write(path.mnt); in SYSCALL_DEFINE5() 707 error = __mnt_want_write(f->f_path.mnt); in do_dentry_open() 759 __mnt_drop_write(f->f_path.mnt); in do_dentry_open() 763 f->f_path.mnt = NULL; in do_dentry_open() [all …]
|
D | statfs.c | 43 static int calculate_f_flags(struct vfsmount *mnt) in calculate_f_flags() argument 45 return ST_VALID | flags_by_mnt(mnt->mnt_flags) | in calculate_f_flags() 46 flags_by_sb(mnt->mnt_sb->s_flags); in calculate_f_flags() 72 buf->f_flags = calculate_f_flags(path->mnt); in vfs_statfs()
|
D | libfs.c | 23 int simple_getattr(struct vfsmount *mnt, struct dentry *dentry, in simple_getattr() argument 540 struct vfsmount *mnt = NULL; in simple_pin_fs() local 544 mnt = vfs_kern_mount(type, MS_KERNMOUNT, type->name, NULL); in simple_pin_fs() 545 if (IS_ERR(mnt)) in simple_pin_fs() 546 return PTR_ERR(mnt); in simple_pin_fs() 549 *mount = mnt; in simple_pin_fs() 554 mntput(mnt); in simple_pin_fs() 561 struct vfsmount *mnt; in simple_release_fs() local 563 mnt = *mount; in simple_release_fs() 567 mntput(mnt); in simple_release_fs() [all …]
|
D | inode.c | 1534 static int relatime_need_update(struct vfsmount *mnt, struct inode *inode, in relatime_need_update() argument 1538 if (!(mnt->mnt_flags & MNT_RELATIME)) in relatime_need_update() 1608 struct vfsmount *mnt = path->mnt; in atime_needs_update() local 1618 if (mnt->mnt_flags & MNT_NOATIME) in atime_needs_update() 1620 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) in atime_needs_update() 1625 if (!relatime_need_update(mnt, inode, now)) in atime_needs_update() 1636 struct vfsmount *mnt = path->mnt; in touch_atime() local 1646 if (__mnt_want_write(mnt) != 0) in touch_atime() 1659 __mnt_drop_write(mnt); in touch_atime()
|
D | fs_struct.c | 50 if (likely(p->dentry != old->dentry || p->mnt != old->mnt)) in replace_path()
|
D | utimes.c | 58 error = mnt_want_write(path->mnt); in utimes_common() 116 mnt_drop_write(path->mnt); in utimes_common()
|
D | anon_inodes.c | 96 path.mnt = mntget(anon_inode_mnt); in anon_inode_getfile()
|
D | dcache.c | 2897 struct mount *mnt; in prepend_path() local 2913 vfsmnt = path->mnt; in prepend_path() 2914 mnt = real_mount(vfsmnt); in prepend_path() 2916 while (dentry != root->dentry || vfsmnt != root->mnt) { in prepend_path() 2920 struct mount *parent = ACCESS_ONCE(mnt->mnt_parent); in prepend_path() 2929 if (mnt != parent) { in prepend_path() 2930 dentry = ACCESS_ONCE(mnt->mnt_mountpoint); in prepend_path() 2931 mnt = parent; in prepend_path() 2932 vfsmnt = &mnt->mnt; in prepend_path() 3090 (!IS_ROOT(path->dentry) || path->dentry != path->mnt->mnt_root)) in d_path()
|
D | xattr.c | 377 error = mnt_want_write(path.mnt); in path_setxattr() 380 mnt_drop_write(path.mnt); in path_setxattr() 624 error = mnt_want_write(path.mnt); in path_removexattr() 627 mnt_drop_write(path.mnt); in path_removexattr()
|
D | bad_inode.c | 92 static int bad_inode_getattr(struct vfsmount *mnt, struct dentry *dentry, in bad_inode_getattr() argument
|
D | exec.c | 103 return (path->mnt->mnt_flags & MNT_NOEXEC) || in path_noexec() 104 (path->mnt->mnt_sb->s_iflags & SB_I_NOEXEC); in path_noexec() 1298 if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID) in bprm_fill_uid()
|
D | stat.c | 57 return inode->i_op->getattr(path->mnt, path->dentry, stat); in vfs_getattr_nosec()
|
D | coredump.c | 688 cprm.file = file_open_root(root.dentry, root.mnt, in do_coredump()
|
D | pipe.c | 728 path.mnt = mntget(pipe_mnt); in create_pipe_files()
|
D | aio.c | 223 path.mnt = mntget(aio_mnt); in aio_private_file()
|
D | block_dev.c | 1766 if (path.mnt->mnt_flags & MNT_NODEV) in lookup_bdev()
|
/linux-4.4.14/fs/notify/ |
D | vfsmount_mark.c | 41 void fsnotify_recalc_vfsmount_mask(struct vfsmount *mnt) in fsnotify_recalc_vfsmount_mask() argument 43 struct mount *m = real_mount(mnt); in fsnotify_recalc_vfsmount_mask() 45 spin_lock(&mnt->mnt_root->d_lock); in fsnotify_recalc_vfsmount_mask() 47 spin_unlock(&mnt->mnt_root->d_lock); in fsnotify_recalc_vfsmount_mask() 52 struct vfsmount *mnt = mark->mnt; in fsnotify_destroy_vfsmount_mark() local 53 struct mount *m = real_mount(mnt); in fsnotify_destroy_vfsmount_mark() 58 spin_lock(&mnt->mnt_root->d_lock); in fsnotify_destroy_vfsmount_mark() 61 mark->mnt = NULL; in fsnotify_destroy_vfsmount_mark() 64 spin_unlock(&mnt->mnt_root->d_lock); in fsnotify_destroy_vfsmount_mark() 72 struct vfsmount *mnt) in fsnotify_find_vfsmount_mark() argument [all …]
|
D | fsnotify.c | 39 void __fsnotify_vfsmount_delete(struct vfsmount *mnt) in __fsnotify_vfsmount_delete() argument 41 fsnotify_clear_marks_by_mount(mnt); in __fsnotify_vfsmount_delete() 196 struct mount *mnt; in fsnotify() local 202 mnt = real_mount(((struct path *)data)->mnt); in fsnotify() 204 mnt = NULL; in fsnotify() 214 (!mnt || hlist_empty(&mnt->mnt_fsnotify_marks))) in fsnotify() 223 !(mnt && test_mask & mnt->mnt_fsnotify_mask)) in fsnotify() 233 if (mnt && ((mask & FS_MODIFY) || in fsnotify() 234 (test_mask & mnt->mnt_fsnotify_mask))) { in fsnotify() 235 vfsmount_node = srcu_dereference(mnt->mnt_fsnotify_marks.first, in fsnotify()
|
D | fsnotify.h | 36 struct fsnotify_group *group, struct vfsmount *mnt, 54 static inline void fsnotify_clear_marks_by_mount(struct vfsmount *mnt) in fsnotify_clear_marks_by_mount() argument 56 fsnotify_destroy_marks(&real_mount(mnt)->mnt_fsnotify_marks, in fsnotify_clear_marks_by_mount() 57 &mnt->mnt_root->d_lock); in fsnotify_clear_marks_by_mount()
|
D | mark.c | 336 struct vfsmount *mnt, int allow_dups) in fsnotify_add_mark_locked() argument 340 BUG_ON(inode && mnt); in fsnotify_add_mark_locked() 341 BUG_ON(!inode && !mnt); in fsnotify_add_mark_locked() 363 } else if (mnt) { in fsnotify_add_mark_locked() 364 ret = fsnotify_add_vfsmount_mark(mark, group, mnt, allow_dups); in fsnotify_add_mark_locked() 397 struct inode *inode, struct vfsmount *mnt, int allow_dups) in fsnotify_add_mark() argument 401 ret = fsnotify_add_mark_locked(mark, group, inode, mnt, allow_dups); in fsnotify_add_mark() 476 new->mnt = old->mnt; in fsnotify_duplicate_mark()
|
D | fdinfo.c | 133 struct mount *mnt = real_mount(mark->mnt); in fanotify_fdinfo() local 136 mnt->mnt_id, mflags, mark->mask, mark->ignored_mask); in fanotify_fdinfo()
|
/linux-4.4.14/tools/lib/api/fs/ |
D | tracing_path.c | 31 const char *mnt; in tracing_path_tracefs_mount() local 33 mnt = tracefs__mount(); in tracing_path_tracefs_mount() 34 if (!mnt) in tracing_path_tracefs_mount() 37 __tracing_path_set("", mnt); in tracing_path_tracefs_mount() 39 return mnt; in tracing_path_tracefs_mount() 44 const char *mnt; in tracing_path_debugfs_mount() local 46 mnt = debugfs__mount(); in tracing_path_debugfs_mount() 47 if (!mnt) in tracing_path_debugfs_mount() 50 __tracing_path_set("tracing/", mnt); in tracing_path_debugfs_mount() 52 return mnt; in tracing_path_debugfs_mount() [all …]
|
/linux-4.4.14/tools/testing/selftests/memfd/ |
D | run_fuse_test.sh | 4 fusermount -u ./mnt 5 rmdir ./mnt 10 mkdir mnt 11 ./fuse_mnt ./mnt 12 ./fuse_test ./mnt/memfd 13 fusermount -u ./mnt 14 rmdir ./mnt
|
/linux-4.4.14/fs/nfs/ |
D | namespace.c | 141 struct vfsmount *mnt; in nfs_d_automount() local 148 mnt = ERR_PTR(-ESTALE); in nfs_d_automount() 152 mnt = ERR_PTR(-ENOMEM); in nfs_d_automount() 160 mnt = server->nfs_client->rpc_ops->submount(server, path->dentry, fh, fattr); in nfs_d_automount() 161 if (IS_ERR(mnt)) in nfs_d_automount() 165 mntget(mnt); /* prevent immediate expiration */ in nfs_d_automount() 166 mnt_set_expiry(mnt, &nfs_automount_list); in nfs_d_automount() 173 if (IS_ERR(mnt)) in nfs_d_automount() 174 dprintk("<-- %s(): error %ld\n", __func__, PTR_ERR(mnt)); in nfs_d_automount() 176 dprintk("<-- %s() = %p\n", __func__, mnt); in nfs_d_automount() [all …]
|
D | super.c | 993 static void nfs_validate_transport_protocol(struct nfs_parsed_mount_data *mnt) in nfs_validate_transport_protocol() argument 995 switch (mnt->nfs_server.protocol) { in nfs_validate_transport_protocol() 1001 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_validate_transport_protocol() 1009 static void nfs_set_mount_transport_protocol(struct nfs_parsed_mount_data *mnt) in nfs_set_mount_transport_protocol() argument 1011 nfs_validate_transport_protocol(mnt); in nfs_set_mount_transport_protocol() 1013 if (mnt->mount_server.protocol == XPRT_TRANSPORT_UDP || in nfs_set_mount_transport_protocol() 1014 mnt->mount_server.protocol == XPRT_TRANSPORT_TCP) in nfs_set_mount_transport_protocol() 1016 switch (mnt->nfs_server.protocol) { in nfs_set_mount_transport_protocol() 1018 mnt->mount_server.protocol = XPRT_TRANSPORT_UDP; in nfs_set_mount_transport_protocol() 1022 mnt->mount_server.protocol = XPRT_TRANSPORT_TCP; in nfs_set_mount_transport_protocol() [all …]
|
D | nfs4namespace.c | 243 struct vfsmount *mnt = ERR_PTR(-ENOENT); in try_location() local 282 mnt = vfs_kern_mount(&nfs4_referral_fs_type, 0, page, mountdata); in try_location() 283 if (!IS_ERR(mnt)) in try_location() 287 return mnt; in try_location() 299 struct vfsmount *mnt = ERR_PTR(-ENOENT); in nfs_follow_referral() local 324 mnt = ERR_PTR(error); in nfs_follow_referral() 335 mnt = try_location(&mountdata, page, page2, location); in nfs_follow_referral() 336 if (!IS_ERR(mnt)) in nfs_follow_referral() 344 return mnt; in nfs_follow_referral() 354 struct vfsmount *mnt = ERR_PTR(-ENOMEM); in nfs_do_refmount() local [all …]
|
D | nfs4file.c | 239 if (src_file.file->f_path.mnt != dst_file->f_path.mnt || in nfs42_ioctl_clone()
|
D | inode.c | 648 int nfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) in nfs_getattr() argument 673 if ((mnt->mnt_flags & MNT_NOATIME) || in nfs_getattr() 674 ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) in nfs_getattr()
|
D | dir.c | 121 if (filp->f_path.dentry == filp->f_path.mnt->mnt_root) { in nfs_opendir()
|
/linux-4.4.14/fs/autofs4/ |
D | expire.c | 38 static int autofs4_mount_busy(struct vfsmount *mnt, struct dentry *dentry) in autofs4_mount_busy() argument 41 struct path path = {.mnt = mnt, .dentry = dentry}; in autofs4_mount_busy() 60 if (!may_umount_tree(path.mnt)) { in autofs4_mount_busy() 189 static int autofs4_direct_busy(struct vfsmount *mnt, in autofs4_direct_busy() argument 197 if (!may_umount_tree(mnt)) { in autofs4_direct_busy() 214 static int autofs4_tree_busy(struct vfsmount *mnt, in autofs4_tree_busy() argument 239 if (autofs4_mount_busy(mnt, p)) { in autofs4_tree_busy() 269 static struct dentry *autofs4_check_leaves(struct vfsmount *mnt, in autofs4_check_leaves() argument 284 if (autofs4_mount_busy(mnt, p)) in autofs4_check_leaves() 297 struct vfsmount *mnt, in autofs4_expire_direct() argument [all …]
|
D | dev-ioctl.c | 204 while (path.dentry == path.mnt->mnt_root) { in find_autofs_mount() 476 struct vfsmount *mnt; in autofs_dev_ioctl_expire() local 480 mnt = fp->f_path.mnt; in autofs_dev_ioctl_expire() 482 return autofs4_do_expire_multi(sbi->sb, mnt, sbi, how); in autofs_dev_ioctl_expire() 491 if (may_umount(fp->f_path.mnt)) in autofs_dev_ioctl_askumount() 549 if (path.mnt->mnt_root == path.dentry) { in autofs_dev_ioctl_ismountpoint()
|
D | autofs_i.h | 159 int autofs4_do_expire_multi(struct super_block *sb, struct vfsmount *mnt, 164 struct vfsmount *mnt, 167 struct vfsmount *mnt,
|
D | root.c | 822 static inline int autofs4_ask_umount(struct vfsmount *mnt, int __user *p) in autofs4_ask_umount() argument 826 if (may_umount(mnt)) in autofs4_ask_umount() 887 return autofs4_ask_umount(filp->f_path.mnt, p); in autofs4_root_ioctl_unlocked() 891 return autofs4_expire_run(inode->i_sb,filp->f_path.mnt,sbi, p); in autofs4_root_ioctl_unlocked() 894 return autofs4_expire_multi(inode->i_sb,filp->f_path.mnt,sbi, p); in autofs4_root_ioctl_unlocked()
|
/linux-4.4.14/include/linux/ |
D | mount.h | 75 extern int mnt_want_write(struct vfsmount *mnt); 77 extern int mnt_clone_write(struct vfsmount *mnt); 78 extern void mnt_drop_write(struct vfsmount *mnt); 80 extern void mntput(struct vfsmount *mnt); 81 extern struct vfsmount *mntget(struct vfsmount *mnt); 83 extern int __mnt_is_readonly(struct vfsmount *mnt); 93 extern void mnt_set_expiry(struct vfsmount *mnt, struct list_head *expiry_list);
|
D | path.h | 8 struct vfsmount *mnt; member 17 return path1->mnt == path2->mnt && path1->dentry == path2->dentry; in path_equal()
|
D | fsnotify_backend.h | 230 struct vfsmount *mnt; /* vfsmount this mark is associated with */ member 253 extern void __fsnotify_vfsmount_delete(struct vfsmount *mnt); 335 extern void fsnotify_recalc_vfsmount_mask(struct vfsmount *mnt); 342 …uct fsnotify_mark *fsnotify_find_vfsmount_mark(struct fsnotify_group *group, struct vfsmount *mnt); 351 struct inode *inode, struct vfsmount *mnt, int allow_dups); 353 struct inode *inode, struct vfsmount *mnt, int allow_dups); 393 static inline void __fsnotify_vfsmount_delete(struct vfsmount *mnt) in __fsnotify_vfsmount_delete() argument
|
D | fsnotify.h | 128 static inline void fsnotify_vfsmount_delete(struct vfsmount *mnt) in fsnotify_vfsmount_delete() argument 130 __fsnotify_vfsmount_delete(mnt); in fsnotify_vfsmount_delete()
|
D | exportfs.h | 223 extern struct dentry *exportfs_decode_fh(struct vfsmount *mnt, struct fid *fid,
|
D | fs.h | 1665 int (*getattr) (struct vfsmount *mnt, struct dentry *, struct kstat *); 1972 extern struct dentry *mount_subtree(struct vfsmount *mnt, const char *path); 2012 extern void kern_unmount(struct vfsmount *mnt); 2027 extern bool our_mnt(struct vfsmount *mnt);
|
D | security.h | 225 int security_sb_umount(struct vfsmount *mnt, int flags); 535 static inline int security_sb_umount(struct vfsmount *mnt, int flags) in security_sb_umount() argument
|
D | lsm_hooks.h | 1345 int (*sb_umount)(struct vfsmount *mnt, int flags);
|
/linux-4.4.14/fs/exportfs/ |
D | expfs.c | 25 static int exportfs_get_name(struct vfsmount *mnt, struct dentry *dir, in exportfs_get_name() argument 29 struct path path = {.mnt = mnt, .dentry = dir}; in exportfs_get_name() 119 static struct dentry *reconnect_one(struct vfsmount *mnt, in reconnect_one() argument 128 if (mnt->mnt_sb->s_export_op->get_parent) in reconnect_one() 129 parent = mnt->mnt_sb->s_export_op->get_parent(dentry); in reconnect_one() 140 err = exportfs_get_name(mnt, parent, nbuf, dentry); in reconnect_one() 205 reconnect_path(struct vfsmount *mnt, struct dentry *target_dir, char *nbuf) in reconnect_path() argument 212 BUG_ON(dentry == mnt->mnt_sb->s_root); in reconnect_path() 215 parent = reconnect_one(mnt, dentry, nbuf); in reconnect_path() 278 .mnt = path->mnt, in get_name() [all …]
|
/linux-4.4.14/fs/cifs/ |
D | cifs_dfs_ref.c | 247 struct vfsmount *mnt; in cifs_dfs_do_refmount() local 258 mnt = vfs_kern_mount(&cifs_fs_type, 0, devname, mountdata); in cifs_dfs_do_refmount() 261 return mnt; in cifs_dfs_do_refmount() 288 struct vfsmount *mnt; in cifs_dfs_do_automount() local 300 mnt = ERR_PTR(-ENOMEM); in cifs_dfs_do_automount() 308 mnt = ERR_CAST(tlink); in cifs_dfs_do_automount() 321 mnt = ERR_PTR(-ENOENT); in cifs_dfs_do_automount() 330 mnt = ERR_PTR(-EINVAL); in cifs_dfs_do_automount() 333 mnt = cifs_dfs_do_refmount(cifs_sb, in cifs_dfs_do_automount() 336 __func__, referrals[i].node_name, mnt); in cifs_dfs_do_automount() [all …]
|
D | inode.c | 1955 int cifs_getattr(struct vfsmount *mnt, struct dentry *dentry, argument
|
/linux-4.4.14/Documentation/target/ |
D | tcm_mod_builder.txt | 30 target:/mnt/sdb/lio-core-2.6.git/Documentation/target# python tcm_mod_builder.py -p iSCSI -m tcm_na… 31 tcm_dir: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../ 34 /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000 37 /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000 39 /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/tcm_nab5000_base.h 41 /mnt/sdb/lio-core-2.6.git/Documentation/target/../../include/target/target_core_fabric_ops.h 43 /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/tcm_nab5000_fabric.c 45 /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/tcm_nab5000_fabric.h 47 /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/tcm_nab5000_configf… 49 /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/Kbuild [all …]
|
/linux-4.4.14/security/tomoyo/ |
D | tomoyo.c | 168 struct path path = { parent->mnt, dentry }; in tomoyo_path_unlink() 184 struct path path = { parent->mnt, dentry }; in tomoyo_path_mkdir() 199 struct path path = { parent->mnt, dentry }; in tomoyo_path_rmdir() 215 struct path path = { parent->mnt, dentry }; in tomoyo_path_symlink() 232 struct path path = { parent->mnt, dentry }; in tomoyo_path_mknod() 271 struct path path1 = { new_dir->mnt, old_dentry }; in tomoyo_path_link() 272 struct path path2 = { new_dir->mnt, new_dentry }; in tomoyo_path_link() 291 struct path path1 = { old_parent->mnt, old_dentry }; in tomoyo_path_rename() 292 struct path path2 = { new_parent->mnt, new_dentry }; in tomoyo_path_rename() 418 static int tomoyo_sb_umount(struct vfsmount *mnt, int flags) in tomoyo_sb_umount() argument [all …]
|
D | realpath.c | 285 if (!path->mnt || in tomoyo_realpath_from_path()
|
/linux-4.4.14/tools/testing/selftests/vm/ |
D | run_vmtests | 6 mnt=./huge 49 mkdir $mnt 50 mount -t hugetlbfs none $mnt 107 umount $mnt 108 rm -rf $mnt
|
/linux-4.4.14/tools/perf/util/ |
D | cpumap.c | 385 const char *mnt; in set_max_cpu_num() local 392 mnt = sysfs__mountpoint(); in set_max_cpu_num() 393 if (!mnt) in set_max_cpu_num() 397 ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/possible", mnt); in set_max_cpu_num() 413 const char *mnt; in set_max_node_num() local 420 mnt = sysfs__mountpoint(); in set_max_node_num() 421 if (!mnt) in set_max_node_num() 425 ret = snprintf(path, PATH_MAX, "%s/devices/system/node/possible", mnt); in set_max_node_num() 464 const char *mnt; in cpu__setup_cpunode_map() local 471 mnt = sysfs__mountpoint(); in cpu__setup_cpunode_map() [all …]
|
D | cgroup.c | 60 char mnt[PATH_MAX + 1]; in open_cgroup() local 64 if (cgroupfs_find_mountpoint(mnt, PATH_MAX + 1)) in open_cgroup() 67 snprintf(path, PATH_MAX, "%s/%s", mnt, name); in open_cgroup()
|
/linux-4.4.14/fs/proc/ |
D | root.c | 201 static int proc_root_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat in proc_root_getattr() argument 266 struct vfsmount *mnt; in pid_ns_prepare_proc() local 268 mnt = kern_mount_data(&proc_fs_type, ns); in pid_ns_prepare_proc() 269 if (IS_ERR(mnt)) in pid_ns_prepare_proc() 270 return PTR_ERR(mnt); in pid_ns_prepare_proc() 272 ns->proc_mnt = mnt; in pid_ns_prepare_proc()
|
D | proc_net.c | 142 static int proc_tgid_net_getattr(struct vfsmount *mnt, struct dentry *dentry, in proc_tgid_net_getattr() argument
|
D | fd.c | 57 real_mount(file->f_path.mnt)->mnt_id); in seq_show()
|
D | base.c | 1684 int pid_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) in pid_getattr() argument 2852 static void proc_flush_task_mnt(struct vfsmount *mnt, pid_t pid, pid_t tgid) in proc_flush_task_mnt() argument 2861 dentry = d_hash_and_lookup(mnt->mnt_root, &name); in proc_flush_task_mnt() 2872 leader = d_hash_and_lookup(mnt->mnt_root, &name); in proc_flush_task_mnt() 3371 static int proc_task_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) in proc_task_getattr() argument
|
D | generic.c | 120 static int proc_getattr(struct vfsmount *mnt, struct dentry *dentry, in proc_getattr() argument
|
D | proc_sysctl.c | 765 static int proc_sys_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) in proc_sys_getattr() argument
|
/linux-4.4.14/Documentation/filesystems/ |
D | sharedsubtree.txt | 44 Let's say /mnt has a mount that is shared. 45 mount --make-shared /mnt 51 # mount --bind /mnt /tmp 52 The above command replicates the mount at /mnt to the mountpoint /tmp 55 #ls /mnt 67 #ls /mnt/a 70 Note that the mount has propagated to the mount at /mnt as well. 72 And the same is true even when /dev/sd0 is mounted on /mnt/a. The 83 Let's say /mnt has a mount which is shared. 84 # mount --make-shared /mnt [all …]
|
D | ecryptfs.txt | 40 (i.e., /mnt/crypt). Now it's time to mount eCryptfs: 42 mount -t ecryptfs /root/crypt /mnt/crypt 49 echo "Hello, World" > /mnt/crypt/hello.txt 59 Then umount /mnt/crypt and mount again per the instructions given 62 cat /mnt/crypt/hello.txt
|
D | ubifs.txt | 103 Mount volume 0 on UBI device 0 to /mnt/ubifs: 104 $ mount -t ubifs ubi0_0 /mnt/ubifs 106 Mount "rootfs" volume of UBI device 0 to /mnt/ubifs ("rootfs" is volume 108 $ mount -t ubifs ubi0:rootfs /mnt/ubifs
|
D | bfs.txt | 15 # mount -t bfs /dev/loop0 /mnt/stand 25 # mount -t bfs -o loop stand.img /mnt/stand
|
D | 9p.txt | 36 mount -t 9p 10.10.1.2 /mnt/9 40 mount -t 9p `namespace`/acme /mnt/9 -o trans=unix,uname=$USER 44 mount -t 9p -o trans=virtio <mount_tag> /mnt/9
|
D | fuse.txt | 320 | "rm /mnt/fuse/file" | FUSE filesystem daemon 367 | "rm /mnt/fuse/file" | FUSE filesystem daemon 369 | >sys_unlink("/mnt/fuse/file") | 375 | | >sys_unlink("/mnt/fuse/file") 391 | [fd = open("/mnt/fuse/file")] | [request served normally]
|
D | exofs.txt | 54 (For example, mkdir /mnt/exofs) 78 For example, to mount /dev/osd0, partition ID 0x10000 on /mnt/exofs: 80 mount -t exofs -o pid=65536 /dev/osd0 /mnt/exofs/
|
D | ceph.txt | 71 # mount -t ceph monip[:port][,monip2[:port]...]:/[subdir] mnt 79 # mount -t ceph 1.2.3.4:/ /mnt/ceph
|
D | automount-support.txt | 46 the mnt to the list using mnt_set_expiry()
|
D | affs.txt | 152 mount Archive/Amiga/Workbench3.1.adf /mnt -t affs -o loop,verbose 194 will remove /mnt/wrongcase, but
|
D | ntfs.txt | 366 $ mount -t ntfs -o ro /dev/device-mapper/myvolume1 /mnt/myvol1 368 (You need to create the directory /mnt/myvol1 first and of course you can use 369 anything you like instead of /mnt/myvol1 as long as it is an existing 430 example: mount -t ntfs -o ro /dev/md0 /mnt/myntfsvolume
|
D | porting | 54 int flags, const char *dev_name, void *data, struct vfsmount *mnt) 57 mnt);
|
D | f2fs.txt | 260 # mkdir /mnt/f2fs 264 # mount -t f2fs /dev/block_device /mnt/f2fs
|
D | vfat.txt | 4 mount -t vfat /dev/fd0 /mnt
|
D | ramfs-rootfs-initramfs.txt | 152 dir /mnt 755 0 0
|
D | path-lookup.txt | 297 * Similarly take the vfsmount lock for the entire path walk. So now mnt
|
D | vfs.txt | 358 int (*getattr) (struct vfsmount *mnt, struct dentry *, struct kstat *);
|
/linux-4.4.14/fs/notify/fanotify/ |
D | fanotify_user.c | 91 if (event->path.dentry && event->path.mnt) in create_fd() 515 struct vfsmount *mnt, __u32 mask, in fanotify_remove_vfsmount_mark() argument 523 fsn_mark = fsnotify_find_vfsmount_mark(group, mnt); in fanotify_remove_vfsmount_mark() 538 if (removed & real_mount(mnt)->mnt_fsnotify_mask) in fanotify_remove_vfsmount_mark() 539 fsnotify_recalc_vfsmount_mask(mnt); in fanotify_remove_vfsmount_mark() 606 struct vfsmount *mnt) in fanotify_add_new_mark() argument 619 ret = fsnotify_add_mark_locked(mark, group, inode, mnt, 0); in fanotify_add_new_mark() 630 struct vfsmount *mnt, __u32 mask, in fanotify_add_vfsmount_mark() argument 637 fsn_mark = fsnotify_find_vfsmount_mark(group, mnt); in fanotify_add_vfsmount_mark() 639 fsn_mark = fanotify_add_new_mark(group, NULL, mnt); in fanotify_add_vfsmount_mark() [all …]
|
D | fanotify.c | 24 old->path.mnt == new->path.mnt && in should_merge() 181 event->path.mnt = NULL; in fanotify_alloc_event()
|
/linux-4.4.14/fs/overlayfs/ |
D | super.c | 104 path->mnt = ofs->upper_mnt; in ovl_path_upper() 524 stack[ctr].mnt = lowerpath.mnt; in ovl_lookup() 744 static struct dentry *ovl_workdir_create(struct vfsmount *mnt, in ovl_workdir_create() argument 752 err = mnt_want_write(mnt); in ovl_workdir_create() 783 mnt_drop_write(mnt); in ovl_workdir_create() 873 *stack_depth = max(*stack_depth, path->mnt->mnt_sb->s_stack_depth); in ovl_lower_dir() 962 if (upperpath.mnt->mnt_sb->s_flags & MS_RDONLY) { in ovl_fill_super() 973 if (upperpath.mnt != workpath.mnt) { in ovl_fill_super() 981 sb->s_stack_depth = upperpath.mnt->mnt_sb->s_stack_depth; in ovl_fill_super() 1044 struct vfsmount *mnt = clone_private_mount(&stack[i]); in ovl_fill_super() local [all …]
|
D | inode.c | 77 static int ovl_getattr(struct vfsmount *mnt, struct dentry *dentry, in ovl_getattr() argument
|
D | dir.c | 135 static int ovl_dir_getattr(struct vfsmount *mnt, struct dentry *dentry, in ovl_dir_getattr() argument
|
/linux-4.4.14/security/apparmor/ |
D | path.c | 63 if (path->mnt->mnt_flags & MNT_INTERNAL) { in d_namespace_path() 89 if (!our_mnt(path->mnt)) in d_namespace_path() 106 } else if (!our_mnt(path->mnt)) in d_namespace_path() 137 our_mnt(path->mnt))) { in d_namespace_path()
|
D | lsm.c | 179 struct path path = { dir->mnt, dentry }; in common_perm_dir_dentry() 193 static int common_perm_mnt_dentry(int op, struct vfsmount *mnt, in common_perm_mnt_dentry() argument 196 struct path path = { mnt, dentry }; in common_perm_mnt_dentry() 219 if (!inode || !dir->mnt || !mediated_filesystem(dentry)) in common_perm_rm() 243 if (!dir->mnt || !mediated_filesystem(dir->dentry)) in common_perm_create() 278 if (!path->mnt || !mediated_filesystem(path->dentry)) in apparmor_path_truncate() 318 struct path old_path = { old_dir->mnt, old_dentry }; in apparmor_path_rename() 319 struct path new_path = { new_dir->mnt, new_dentry }; in apparmor_path_rename() 342 return common_perm_mnt_dentry(OP_CHMOD, path->mnt, path->dentry, AA_MAY_CHMOD); in apparmor_path_chmod() 362 return common_perm_mnt_dentry(OP_GETATTR, path->mnt, path->dentry, in apparmor_inode_getattr() [all …]
|
D | file.c | 351 struct path link = { new_dir->mnt, new_dentry }; in aa_path_link() 352 struct path target = { new_dir->mnt, old_dentry }; in aa_path_link()
|
/linux-4.4.14/tools/testing/selftests/rcutorture/doc/ |
D | rcu-test-image.txt | 12 sudo mount -o loop ./rcu-test-image /mnt 17 sudo debootstrap --verbose --arch i386 precise /mnt http://archive.ubuntu.com/ubuntu 18 cat << '___EOF___' | sudo dd of=/mnt/etc/fstab 28 sudo umount /mnt
|
/linux-4.4.14/fs/afs/ |
D | mntpt.c | 128 struct vfsmount *mnt; in afs_mntpt_do_automount() local 205 mnt = vfs_kern_mount(&afs_fs_type, 0, devname, options); in afs_mntpt_do_automount() 206 _debug("--- mount result %p ---", mnt); in afs_mntpt_do_automount() 210 _leave(" = %p", mnt); in afs_mntpt_do_automount() 211 return mnt; in afs_mntpt_do_automount()
|
D | inode.c | 377 int afs_getattr(struct vfsmount *mnt, struct dentry *dentry, in afs_getattr() argument
|
/linux-4.4.14/Documentation/power/ |
D | swsusp-dmcrypt.txt | 58 /dev/hda1 /mnt ext3 ro 0 0 86 mount -t ext2 -o ro /dev/hde1 /mnt 87 if [ -f /mnt/swapkey ] 89 dmsetup create swap0 /mnt/swapkey > /dev/null 2>&1 && mapped=1 91 umount /mnt 108 mount /mnt 110 cd /mnt 111 pivot_root . mnt 113 umount -l /mnt
|
/linux-4.4.14/fs/nfsd/ |
D | vfs.h | 112 int ret = mnt_want_write(fh->fh_export->ex_path.mnt); in fh_want_write() 123 mnt_drop_write(fh->fh_export->ex_path.mnt); in fh_drop_write() 129 struct path p = {.mnt = fh->fh_export->ex_path.mnt, in fh_getattr()
|
D | vfs.c | 88 struct path path = {.mnt = mntget(exp->ex_path.mnt), in nfsd_cross_mnt() 135 while (path->dentry == path->mnt->mnt_root && follow_up(path)) in follow_to_parent() 145 struct path path = {.mnt = mntget((*exp)->ex_path.mnt), in nfsd_lookup_parent() 666 path.mnt = fhp->fh_export->ex_path.mnt; in nfsd_open() 1438 path.mnt = fhp->fh_export->ex_path.mnt; in nfsd_readlink() 1659 if (ffhp->fh_export->ex_path.mnt != tfhp->fh_export->ex_path.mnt) in nfsd_rename() 1921 .mnt = fhp->fh_export->ex_path.mnt, in nfsd_statfs() 1960 __mnt_is_readonly(exp->ex_path.mnt)? " ro" : ""); in nfsd_permission() 1972 __mnt_is_readonly(exp->ex_path.mnt)) in nfsd_permission()
|
D | nfs4layouts.c | 119 struct super_block *sb = exp->ex_path.mnt->mnt_sb; in nfsd4_setup_layout_type() 601 argv[2] = ls->ls_file->f_path.mnt->mnt_sb->s_id; in nfsd4_cb_layout_fail()
|
D | nfsfh.c | 250 dentry = exportfs_decode_fh(exp->ex_path.mnt, fid, in nfsd_set_fh_dentry()
|
D | nfs4xdr.c | 2029 if (cur.dentry == cur.mnt->mnt_root) { in nfsd4_encode_path() 2224 if (path.dentry != path.mnt->mnt_root) in get_parent_attributes() 2297 .mnt = exp->ex_path.mnt, in nfsd4_encode_fattr() 2597 p = xdr_encode_hyper(p, exp->ex_path.mnt->mnt_sb->s_maxbytes); in nfsd4_encode_fattr() 2727 dentry == exp->ex_path.mnt->mnt_root) { in nfsd4_encode_fattr()
|
D | export.c | 771 hash ^= hash_ptr(exp->ex_path.mnt, EXPORT_HASHBITS); in svc_export_hash()
|
D | nfs4proc.c | 1231 nfserr = ops->proc_getdeviceinfo(exp->ex_path.mnt->mnt_sb, gdp); in nfsd4_getdeviceinfo()
|
/linux-4.4.14/fs/cachefiles/ |
D | bind.c | 121 cache->mnt = path.mnt; in cachefiles_daemon_add_cache() 242 mntput(cache->mnt); in cachefiles_daemon_add_cache() 243 cache->mnt = NULL; in cachefiles_daemon_add_cache() 270 mntput(cache->mnt); in cachefiles_daemon_unbind()
|
D | namei.c | 286 path.mnt = cache->mnt; in cachefiles_bury_object() 385 path.mnt = cache->mnt; in cachefiles_bury_object() 387 path_to_graveyard.mnt = cache->mnt; in cachefiles_bury_object() 477 path.mnt = cache->mnt; in cachefiles_walk_to_object() 754 path.mnt = cache->mnt; in cachefiles_get_directory()
|
D | interface.c | 374 down_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache() 375 ret = sync_filesystem(cache->mnt->mnt_sb); in cachefiles_sync_cache() 376 up_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache() 509 path.mnt = cache->mnt; in cachefiles_invalidate_object()
|
D | daemon.c | 679 .mnt = cache->mnt, in cachefiles_has_space() 680 .dentry = cache->mnt->mnt_root, in cachefiles_has_space()
|
D | internal.h | 60 struct vfsmount *mnt; /* mountpoint holding the cache */ member
|
D | rdwr.c | 913 path.mnt = cache->mnt; in cachefiles_write_page()
|
/linux-4.4.14/Documentation/device-mapper/ |
D | log-writes.txt | 107 mount /dev/mapper/log /mnt/btrfs-test 110 md5sum /mnt/btrfs-test/foo 111 umount /mnt/btrfs-test 115 mount /dev/sdb /mnt/btrfs-test 116 md5sum /mnt/btrfs-test/foo 127 mount /dev/mapper/log /mnt/btrfs-test 129 btrfs filesystem balance /mnt/btrfs-test 130 umount /mnt/btrfs-test
|
/linux-4.4.14/Documentation/ia64/ |
D | xen.txt | 57 # mount -o loop /root/rhel5.img /mnt 58 # cp -ax /{dev,var,etc,usr,bin,sbin,lib} /mnt 59 # mkdir /mnt/{root,proc,sys,home,tmp} 65 # vi /mnt/etc/fstab 74 # vi /mnt/etc/inittab 81 # vi /mnt/etc/securetty (add hvc0) 84 # umount /mnt
|
/linux-4.4.14/kernel/ |
D | acct.c | 193 struct vfsmount *mnt, *internal; in acct_on() local 234 mnt = file->f_path.mnt; in acct_on() 235 file->f_path.mnt = internal; in acct_on() 246 pin_insert(&acct->pin, mnt); in acct_on() 252 mnt_drop_write(mnt); in acct_on() 253 mntput(mnt); in acct_on()
|
D | audit_tree.c | 580 static int compare_root(struct vfsmount *mnt, void *arg) in compare_root() argument 582 return d_backing_inode(mnt->mnt_root) == arg; in compare_root() 652 static int tag_mount(struct vfsmount *mnt, void *arg) in tag_mount() argument 654 return tag_chunk(d_backing_inode(mnt->mnt_root), arg); in tag_mount() 713 struct vfsmount *mnt; in audit_add_tree_rule() local 740 mnt = collect_mounts(&path); in audit_add_tree_rule() 742 if (IS_ERR(mnt)) { in audit_add_tree_rule() 743 err = PTR_ERR(mnt); in audit_add_tree_rule() 748 err = iterate_mounts(tag_mount, tree, mnt); in audit_add_tree_rule() 749 drop_collected_mounts(mnt); in audit_add_tree_rule()
|
D | sysctl_binary.c | 1300 struct vfsmount *mnt; in binary_sysctl() local 1323 mnt = task_active_pid_ns(current)->proc_mnt; in binary_sysctl() 1324 file = file_open_root(mnt->mnt_root, mnt, pathname, flags, 0); in binary_sysctl()
|
D | auditsc.c | 880 context->pwd.mnt = NULL; in audit_free_names() 1426 if (context->pwd.dentry && context->pwd.mnt) { in audit_log_exit()
|
/linux-4.4.14/Documentation/filesystems/pohmelfs/ |
D | info.txt | 61 Mount filesystem with given index $idx to /mnt mountpoint. 63 mount -t pohmel -o idx=$idx q /mnt 74 device none mounted on /mnt with fstype pohmel 83 is set to /mnt, server will negotiate hash/cipher with client, in case client requested it, there 87 # ./fserver -a 0.0.0.0 -p 1025 -r /mnt -w 10 -K hash_key -k cipher_key
|
/linux-4.4.14/scripts/selinux/ |
D | install_policy.sh | 65 mount --move /dev /mnt 67 mount --move /mnt /dev
|
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/ |
D | inode.c | 423 struct vfsmount *mnt, int flags, umode_t mode, in spufs_create_context() argument 430 struct path path = {.mnt = mnt, .dentry = dentry}; in spufs_create_context() 542 struct vfsmount *mnt, umode_t mode) in spufs_create_gang() argument 544 struct path path = {.mnt = mnt, .dentry = dentry}; in spufs_create_gang() 583 ret = spufs_create_gang(dir, dentry, path->mnt, mode); in spufs_create() 585 ret = spufs_create_context(dir, dentry, path->mnt, flags, mode, in spufs_create()
|
/linux-4.4.14/fs/btrfs/ |
D | super.c | 1278 struct vfsmount *mnt = NULL; in mount_subvol() local 1288 mnt = vfs_kern_mount(&btrfs_fs_type, flags, device_name, newargs); in mount_subvol() 1289 if (PTR_ERR_OR_ZERO(mnt) == -EBUSY) { in mount_subvol() 1291 mnt = vfs_kern_mount(&btrfs_fs_type, flags & ~MS_RDONLY, in mount_subvol() 1294 mnt = vfs_kern_mount(&btrfs_fs_type, flags | MS_RDONLY, in mount_subvol() 1296 if (IS_ERR(mnt)) { in mount_subvol() 1297 root = ERR_CAST(mnt); in mount_subvol() 1298 mnt = NULL; in mount_subvol() 1302 down_write(&mnt->mnt_sb->s_umount); in mount_subvol() 1303 ret = btrfs_remount(mnt->mnt_sb, &flags, NULL); in mount_subvol() [all …]
|
D | ioctl.c | 3257 } else if (file->f_path.mnt != dst_file.file->f_path.mnt) { in btrfs_ioctl_file_extent_same() 3896 if (src_file.file->f_path.mnt != file->f_path.mnt) in btrfs_ioctl_clone()
|
D | inode.c | 9229 static int btrfs_getattr(struct vfsmount *mnt, in btrfs_getattr() argument
|
/linux-4.4.14/ipc/ |
D | mqueue.c | 780 struct vfsmount *mnt = ipc_ns->mq_mnt; in SYSCALL_DEFINE4() local 781 struct dentry *root = mnt->mnt_root; in SYSCALL_DEFINE4() 796 ro = mnt_want_write(mnt); /* we'll drop it in any case */ in SYSCALL_DEFINE4() 804 path.mnt = mntget(mnt); in SYSCALL_DEFINE4() 846 mnt_drop_write(mnt); in SYSCALL_DEFINE4() 859 struct vfsmount *mnt = ipc_ns->mq_mnt; in SYSCALL_DEFINE1() local 865 audit_inode_parent_hidden(name, mnt->mnt_root); in SYSCALL_DEFINE1() 866 err = mnt_want_write(mnt); in SYSCALL_DEFINE1() 869 mutex_lock_nested(&d_inode(mnt->mnt_root)->i_mutex, I_MUTEX_PARENT); in SYSCALL_DEFINE1() 870 dentry = lookup_one_len(name->name, mnt->mnt_root, in SYSCALL_DEFINE1() [all …]
|
/linux-4.4.14/Documentation/fault-injection/ |
D | provoke-crashes.txt | 32 mount -t debugfs debugfs /mnt 33 echo EXCEPTION > /mnt/provoke-crash/INT_HARDWARE_ENTRY
|
/linux-4.4.14/fs/devpts/ |
D | inode.c | 712 struct vfsmount *mnt; in init_devpts_fs() local 715 mnt = kern_mount(&devpts_fs_type); in init_devpts_fs() 716 if (IS_ERR(mnt)) { in init_devpts_fs() 717 err = PTR_ERR(mnt); in init_devpts_fs() 721 devpts_mnt = mnt; in init_devpts_fs()
|
/linux-4.4.14/fs/ext4/ |
D | file.c | 364 struct vfsmount *mnt = filp->f_path.mnt; in ext4_file_open() local 379 path.mnt = mnt; in ext4_file_open() 380 path.dentry = mnt->mnt_root; in ext4_file_open()
|
D | ext4.h | 2497 extern int ext4_getattr(struct vfsmount *mnt, struct dentry *dentry,
|
D | inode.c | 4921 int ext4_getattr(struct vfsmount *mnt, struct dentry *dentry, in ext4_getattr() argument
|
/linux-4.4.14/fs/kernfs/ |
D | kernfs-internal.h | 82 int kernfs_iop_getattr(struct vfsmount *mnt, struct dentry *dentry,
|
D | inode.c | 270 int kernfs_iop_getattr(struct vfsmount *mnt, struct dentry *dentry, in kernfs_iop_getattr() argument
|
/linux-4.4.14/fs/ocfs2/ |
D | file.h | 71 int ocfs2_getattr(struct vfsmount *mnt, struct dentry *dentry,
|
D | mmap.c | 183 file->f_path.mnt, &lock_level); in ocfs2_mmap()
|
D | file.c | 1288 int ocfs2_getattr(struct vfsmount *mnt, in ocfs2_getattr() argument 2454 ret = ocfs2_inode_lock_atime(inode, in->f_path.mnt, &lock_level); in ocfs2_file_splice_read() 2511 ret = ocfs2_inode_lock_atime(inode, filp->f_path.mnt, &lock_level); in ocfs2_file_read_iter()
|
D | refcounttree.c | 4430 if (old_path.mnt != new_path.mnt) { in ocfs2_reflink_ioctl()
|
D | dir.c | 1960 error = ocfs2_inode_lock_atime(inode, file->f_path.mnt, &lock_level); in ocfs2_readdir()
|
/linux-4.4.14/drivers/base/ |
D | devtmpfs.c | 311 struct path p = {.mnt = parent.mnt, .dentry = dentry}; in handle_remove()
|
/linux-4.4.14/fs/ecryptfs/ |
D | kthread.c | 143 req.path.mnt = lower_mnt; in ecryptfs_privileged_open()
|
D | main.c | 126 rc = ecryptfs_privileged_open(lower_file, path->dentry, path->mnt, in ecryptfs_init_lower_file() 131 "rc = [%d]\n", path->dentry, path->mnt, rc); in ecryptfs_init_lower_file()
|
D | inode.c | 353 dentry_info->lower_path.mnt = lower_mnt; in ecryptfs_lookup_interpose() 975 static int ecryptfs_getattr_link(struct vfsmount *mnt, struct dentry *dentry, in ecryptfs_getattr_link() argument 999 static int ecryptfs_getattr(struct vfsmount *mnt, struct dentry *dentry, in ecryptfs_getattr() argument
|
D | ecryptfs_kernel.h | 520 return ((struct ecryptfs_dentry_info *)dentry->d_fsdata)->lower_path.mnt; in ecryptfs_dentry_to_lower_mnt()
|
/linux-4.4.14/arch/um/drivers/ |
D | mconsole_kern.c | 126 struct vfsmount *mnt = task_active_pid_ns(current)->proc_mnt; in mconsole_proc() local 136 file = file_open_root(mnt->mnt_root, mnt, ptr, O_RDONLY, 0); in mconsole_proc()
|
/linux-4.4.14/Documentation/ |
D | ramoops.txt | 117 # mount -t pstore pstore /mnt/ 118 # tail /mnt/ftrace-ramoops
|
D | initrd.txt | 139 # mount -t ext2 -o loop initrd /mnt 141 # mkdir /mnt/dev 142 # mknod /mnt/dev/console c 5 1 148 # chroot /mnt /sbin/init 155 # umount /mnt
|
D | bcache.txt | 72 mount /dev/bcache0 /mnt
|
/linux-4.4.14/security/keys/ |
D | big_key.c | 156 path->mnt = NULL; in big_key_destroy()
|
/linux-4.4.14/drivers/scsi/aacraid/ |
D | aachba.c | 622 (le32_to_cpu(dresp->mnt[0].vol) != CT_NONE) && in _aac_probe_container2() 623 (le32_to_cpu(dresp->mnt[0].state) != FSCS_HIDDEN)) { in _aac_probe_container2() 626 dresp->mnt[0].fileinfo.bdevinfo.block_size = 0x200; in _aac_probe_container2() 630 le32_to_cpu(dresp->mnt[0].fileinfo.bdevinfo.block_size); in _aac_probe_container2() 634 if (dresp->mnt[0].state & cpu_to_le32(FSCS_NOT_READY)) in _aac_probe_container2() 638 fsa_dev_ptr->type = le32_to_cpu(dresp->mnt[0].vol); in _aac_probe_container2() 640 = ((u64)le32_to_cpu(dresp->mnt[0].capacity)) + in _aac_probe_container2() 641 (((u64)le32_to_cpu(dresp->mnt[0].capacityhigh)) << 32); in _aac_probe_container2() 642 fsa_dev_ptr->ro = ((le32_to_cpu(dresp->mnt[0].state) & FSCS_READONLY) != 0); in _aac_probe_container2() 666 dresp->mnt[0].capacityhigh = 0; in _aac_probe_container1() [all …]
|
D | aacraid.h | 1814 struct aac_mntent mnt[1]; member
|
/linux-4.4.14/Documentation/vm/ |
D | hugetlbpage.txt | 271 min_size=<value>,nr_inodes=<value> none /mnt/huge 274 /mnt/huge. Any files created on /mnt/huge uses huge pages. The uid and gid 283 filesystem (/mnt/huge). The size option can be specified in bytes, or as a 293 nr_inodes sets the maximum number of inodes that /mnt/huge can use. If the
|
/linux-4.4.14/drivers/staging/lustre/ |
D | README.txt | 27 mount -t lustre mgs:/fsname mnt
|
/linux-4.4.14/fs/coda/ |
D | inode.c | 258 int coda_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) in coda_getattr() argument
|
/linux-4.4.14/Documentation/accounting/ |
D | delay-accounting.txt | 107 boot data2 data4 data6 etc lib mnt proc sbin subdomain tmp var
|
/linux-4.4.14/Documentation/cdrom/ |
D | ide-cd | 124 mount -t iso9660 /dev/cdrom /mnt/cdrom 127 device (as described in step 5 of the last section) and /mnt/cdrom is 129 CDROM under the /mnt/cdrom directory. If you want to eject the CDROM, 132 umount /mnt/cdrom
|
/linux-4.4.14/drivers/staging/lustre/lustre/include/ |
D | lustre_disk.h | 390 struct vfsmount *mnt));
|
/linux-4.4.14/Documentation/ide/ |
D | ide.txt | 129 mkdir /mnt/cdrom 130 mount /dev/cdrom /mnt/cdrom -t iso9660 -o ro
|
/linux-4.4.14/fs/fat/ |
D | file.c | 307 int fat_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) in fat_getattr() argument
|
D | fat.h | 364 extern int fat_getattr(struct vfsmount *mnt, struct dentry *dentry,
|
/linux-4.4.14/fs/xfs/ |
D | xfs_ioctl.c | 180 return exportfs_decode_fh(parfilp->f_path.mnt, (struct fid *)&fid, 3, in xfs_handle_to_dentry() 251 path.mnt = parfilp->f_path.mnt; in xfs_open_by_handle()
|
D | xfs_iops.c | 442 struct vfsmount *mnt, in xfs_vn_getattr() argument
|
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/ |
D | obd_mount.c | 56 struct vfsmount *mnt); 1152 struct vfsmount *mnt)) in lustre_register_client_fill_super() argument
|
/linux-4.4.14/Documentation/cgroups/ |
D | blkio-controller.txt | 51 dd if=/mnt/sdb/zerofile1 of=/dev/null & 55 dd if=/mnt/sdb/zerofile2 of=/dev/null & 87 # dd if=/mnt/common/zerofile of=/dev/null bs=4K count=1024
|
/linux-4.4.14/drivers/staging/lustre/lustre/llite/ |
D | llite_internal.h | 729 int ll_getattr(struct vfsmount *mnt, struct dentry *de, struct kstat *stat); 765 int ll_fill_super(struct super_block *sb, struct vfsmount *mnt);
|
D | file.c | 1046 const struct vfsmount *mnt = file->f_path.mnt; in file_is_noatime() local 1059 if (mnt->mnt_flags & (MNT_NOATIME | MNT_READONLY)) in file_is_noatime() 1062 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) in file_is_noatime() 2982 int ll_getattr(struct vfsmount *mnt, struct dentry *de, struct kstat *stat) in ll_getattr() argument
|
D | llite_lib.c | 144 struct vfsmount *mnt) in client_common_fill_super() argument 849 int ll_fill_super(struct super_block *sb, struct vfsmount *mnt) in ll_fill_super() argument 929 err = client_common_fill_super(sb, md, dt, mnt); in ll_fill_super()
|
/linux-4.4.14/net/unix/ |
D | af_unix.c | 526 u->path.mnt = NULL; in unix_release_sock() 777 u->path.mnt = NULL; in unix_create1() 965 res->mnt = mntget(path->mnt); in unix_mknod()
|
/linux-4.4.14/fs/sysv/ |
D | itree.c | 443 int sysv_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) in sysv_getattr() argument
|
/linux-4.4.14/security/ |
D | commoncap.c | 456 if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID) in get_file_caps()
|
D | security.c | 311 int security_sb_umount(struct vfsmount *mnt, int flags) in security_sb_umount() argument 313 return call_int_hook(sb_umount, 0, mnt, flags); in security_sb_umount()
|
/linux-4.4.14/fs/ceph/ |
D | super.h | 792 extern int ceph_getattr(struct vfsmount *mnt, struct dentry *dentry,
|
D | inode.c | 2071 int ceph_getattr(struct vfsmount *mnt, struct dentry *dentry, in ceph_getattr() argument
|
/linux-4.4.14/fs/minix/ |
D | inode.c | 626 int minix_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) in minix_getattr() argument
|
/linux-4.4.14/Documentation/filesystems/nfs/ |
D | nfs-rdma.txt | 269 $ mount -o rdma,port=20049 <IPoIB-server-name-or-address>:/<export> /mnt
|
/linux-4.4.14/Documentation/filesystems/cifs/ |
D | README | 91 //server/usersharename /mnt/username cifs user 0 0 178 ln -s /mnt/foo bar 195 mount -t cifs //9.53.216.11/e$ /mnt -o user=myname,pass=mypassword 218 mount -t cifs tcp_name_of_server:share_name /mnt -o user=myname,pass=mypasswd
|
/linux-4.4.14/fs/9p/ |
D | vfs_inode_dotl.c | 473 v9fs_vfs_getattr_dotl(struct vfsmount *mnt, struct dentry *dentry, in v9fs_vfs_getattr_dotl() argument
|
D | vfs_inode.c | 1053 v9fs_vfs_getattr(struct vfsmount *mnt, struct dentry *dentry, in v9fs_vfs_getattr() argument
|
/linux-4.4.14/fs/ubifs/ |
D | ubifs.h | 1755 int ubifs_getattr(struct vfsmount *mnt, struct dentry *dentry,
|
D | dir.c | 1134 int ubifs_getattr(struct vfsmount *mnt, struct dentry *dentry, in ubifs_getattr() argument
|
/linux-4.4.14/kernel/trace/ |
D | trace.c | 6818 struct vfsmount *mnt; in trace_automount() local 6829 mnt = vfs_kern_mount(type, 0, "tracefs", NULL); in trace_automount() 6831 if (IS_ERR(mnt)) in trace_automount() 6833 mntget(mnt); in trace_automount() 6835 return mnt; in trace_automount()
|
/linux-4.4.14/Documentation/virtual/uml/ |
D | UserModeLinux-HOWTO.txt | 348 host% mount root_fs mnt -o loop 359 make modules_install INSTALL_MOD_PATH=`pwd`/mnt ARCH=um 369 host% umount mnt 2084 mount /dev/ubd/4 /mnt 2133 UML# mount none /mnt/host -t hostfs 2138 will mount the host's / on the virtual machine's /mnt/host. 2145 UML# mount none /mnt/home -t hostfs -o /home 2150 will mount the hosts's /home on the virtual machine's /mnt/home.
|
/linux-4.4.14/fs/hugetlbfs/ |
D | inode.c | 1276 path.mnt = mntget(hugetlbfs_vfsmount[hstate_idx]); in hugetlb_file_setup()
|
/linux-4.4.14/mm/ |
D | shmem.c | 547 static int shmem_getattr(struct vfsmount *mnt, struct dentry *dentry, in shmem_getattr() argument 3346 path.mnt = mntget(shm_mnt); in __shmem_file_setup()
|
/linux-4.4.14/Documentation/blockdev/ |
D | paride.txt | 295 mount /dev/pf0 /mnt
|
/linux-4.4.14/Documentation/serial/ |
D | moxa-smartio | 150 # cp /mnt/cdrom/<driver directory>/mxser.tgz .
|
/linux-4.4.14/security/selinux/ |
D | selinuxfs.c | 1866 selinux_null.mnt = selinuxfs_mount = kern_mount(&sel_fs_type); in init_sel_fs()
|
D | hooks.c | 2174 int nosuid = (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID); in check_nnp_nosuid() 2714 static int selinux_umount(struct vfsmount *mnt, int flags) in selinux_umount() argument 2718 return superblock_has_perm(cred, mnt->mnt_sb, in selinux_umount()
|
/linux-4.4.14/fs/f2fs/ |
D | file.c | 622 int f2fs_getattr(struct vfsmount *mnt, in f2fs_getattr() argument
|
/linux-4.4.14/Documentation/scsi/ |
D | tmscsim.txt | 97 dd if=/dev/sda of=/mnt/floppy/sda bs=512 count=1
|
/linux-4.4.14/fs/gfs2/ |
D | inode.c | 1971 static int gfs2_getattr(struct vfsmount *mnt, struct dentry *dentry, in gfs2_getattr() argument
|
/linux-4.4.14/fs/fuse/ |
D | dir.c | 1710 static int fuse_getattr(struct vfsmount *mnt, struct dentry *entry, in fuse_getattr() argument
|
/linux-4.4.14/net/ |
D | socket.c | 371 path.mnt = mntget(sock_mnt); in sock_alloc_file()
|
/linux-4.4.14/arch/ia64/kernel/ |
D | perfmon.c | 2200 path.mnt = mntget(pfmfs_mnt); in pfm_alloc_file()
|