Lines Matching refs:mnt

19 nxt_fs_mount(nxt_task_t *task, nxt_fs_mount_t *mnt)  in nxt_fs_mount()  argument
27 switch (mnt->type) { in nxt_fs_mount()
29 if (nxt_slow_path(mnt->flags != 0)) { in nxt_fs_mount()
47 fsname = (const char *) mnt->name; in nxt_fs_mount()
51 if (mnt->flags & NXT_FS_FLAGS_NODEV) { in nxt_fs_mount()
55 if (mnt->flags & NXT_FS_FLAGS_NOEXEC) { in nxt_fs_mount()
59 if (mnt->flags & NXT_FS_FLAGS_NOSUID) { in nxt_fs_mount()
63 if (!(mnt->flags & NXT_FS_FLAGS_NOTIME)) { in nxt_fs_mount()
68 rc = mount((const char *) mnt->src, (const char *) mnt->dst, fsname, flags, in nxt_fs_mount()
69 mnt->data); in nxt_fs_mount()
73 mnt->src, mnt->dst, fsname, flags, mnt->data, nxt_errno); in nxt_fs_mount()
84 nxt_fs_mount(nxt_task_t *task, nxt_fs_mount_t *mnt) in nxt_fs_mount() argument
94 if (nxt_slow_path((mnt->flags & NXT_FS_FLAGS_NODEV) && !mnt->builtin)) { in nxt_fs_mount()
102 switch (mnt->type) { in nxt_fs_mount()
116 fsname = (const char *) mnt->name; in nxt_fs_mount()
120 if (mnt->flags & NXT_FS_FLAGS_NOEXEC) { in nxt_fs_mount()
124 if (mnt->flags & NXT_FS_FLAGS_NOSUID) { in nxt_fs_mount()
128 if (mnt->flags & NXT_FS_FLAGS_NOTIME) { in nxt_fs_mount()
132 if (mnt->flags & NXT_FS_FLAGS_RDONLY) { in nxt_fs_mount()
143 iov[3].iov_base = (void *) mnt->dst; in nxt_fs_mount()
144 iov[3].iov_len = nxt_strlen(mnt->dst) + 1; in nxt_fs_mount()
147 iov[5].iov_base = (void *) mnt->src; in nxt_fs_mount()
148 iov[5].iov_len = nxt_strlen(mnt->src) + 1; in nxt_fs_mount()
158 if (mnt->data != NULL) { in nxt_fs_mount()
159 data = (u_char *) nxt_strdup(mnt->data); in nxt_fs_mount()