Lines Matching refs:m
158 inode->i_mode = server->m.dir_mode; in ncp_update_attrs()
163 inode->i_mode = server->m.file_mode; in ncp_update_attrs()
166 if ((server->m.flags & (NCP_MOUNT_EXTRAS|NCP_MOUNT_SYMLINKS)) in ncp_update_attrs()
170 if (server->m.flags & NCP_MOUNT_SYMLINKS) { in ncp_update_attrs()
180 if (server->m.flags & NCP_MOUNT_EXTRAS) in ncp_update_attrs()
184 if (server->m.flags & NCP_MOUNT_EXTRAS) in ncp_update_attrs()
224 inode->i_uid = server->m.uid; in ncp_set_attr()
225 inode->i_gid = server->m.gid; in ncp_set_attr()
315 if (server->m.uid != 0) in ncp_show_options()
316 seq_printf(seq, ",uid=%u", server->m.uid); in ncp_show_options()
317 if (server->m.gid != 0) in ncp_show_options()
318 seq_printf(seq, ",gid=%u", server->m.gid); in ncp_show_options()
319 if (server->m.mounted_uid != 0) in ncp_show_options()
320 seq_printf(seq, ",owner=%u", server->m.mounted_uid); in ncp_show_options()
321 tmp = server->m.file_mode & S_IALLUGO; in ncp_show_options()
324 tmp = server->m.dir_mode & S_IALLUGO; in ncp_show_options()
327 if (server->m.time_out != NCP_DEFAULT_TIME_OUT * HZ / 100) { in ncp_show_options()
328 tmp = server->m.time_out * 100 / HZ; in ncp_show_options()
331 if (server->m.retry_count != NCP_DEFAULT_RETRY_COUNT) in ncp_show_options()
332 seq_printf(seq, ",retry=%u", server->m.retry_count); in ncp_show_options()
333 if (server->m.flags != 0) in ncp_show_options()
334 seq_printf(seq, ",flags=%lu", server->m.flags); in ncp_show_options()
335 if (server->m.wdog_pid != NULL) in ncp_show_options()
336 seq_printf(seq, ",wdogpid=%u", pid_vnr(server->m.wdog_pid)); in ncp_show_options()
574 server->m = data; in ncp_fill_super()
577 if (server->m.time_out < 1) { in ncp_fill_super()
578 server->m.time_out = 10; in ncp_fill_super()
581 server->m.time_out = server->m.time_out * HZ / 100; in ncp_fill_super()
582 server->m.file_mode = (server->m.file_mode & S_IRWXUGO) | S_IFREG; in ncp_fill_super()
583 server->m.dir_mode = (server->m.dir_mode & S_IRWXUGO) | S_IFDIR; in ncp_fill_super()
762 kill_pid(server->m.wdog_pid, SIGTERM, 1); in ncp_put_super()
763 put_pid(server->m.wdog_pid); in ncp_put_super()
801 if (!s->m.mounted_vol[0]) { in ncp_statfs()
865 (attr->ia_uid != server->m.uid))) in ncp_notify_change()
869 (attr->ia_gid != server->m.gid))) in ncp_notify_change()
888 newmode &= server->m.dir_mode; in ncp_notify_change()
891 if (server->m.flags & NCP_MOUNT_EXTRAS) { in ncp_notify_change()
893 if (newmode & ~server->m.file_mode & S_IXUGO) in ncp_notify_change()
896 else if (newmode & ~server->m.file_mode & S_IRUGO) in ncp_notify_change()
900 newmode &= server->m.file_mode; in ncp_notify_change()