Lines Matching refs:mnt
355 parse_options(struct smb_mount_data_kernel *mnt, char *options) in parse_options() argument
378 mnt->version = value; in parse_options()
381 mnt->uid = value; in parse_options()
385 mnt->gid = value; in parse_options()
389 mnt->file_mode = (value & S_IRWXUGO) | S_IFREG; in parse_options()
393 mnt->dir_mode = (value & S_IRWXUGO) | S_IFDIR; in parse_options()
397 strlcpy(mnt->codepage.local_name, optarg, in parse_options()
401 strlcpy(mnt->codepage.remote_name, optarg, in parse_options()
405 mnt->ttl = value; in parse_options()
413 mnt->flags = flags; in parse_options()
425 struct smb_mount_data_kernel *mnt = SMB_SB(m->mnt_sb)->mnt; in smb_show_options() local
429 if (mnt->flags & opts[i].flag) in smb_show_options()
432 if (mnt->flags & SMB_MOUNT_UID) in smb_show_options()
433 seq_printf(s, ",uid=%d", mnt->uid); in smb_show_options()
434 if (mnt->flags & SMB_MOUNT_GID) in smb_show_options()
435 seq_printf(s, ",gid=%d", mnt->gid); in smb_show_options()
436 if (mnt->mounted_uid != 0) in smb_show_options()
437 seq_printf(s, ",mounted_uid=%d", mnt->mounted_uid); in smb_show_options()
443 if (mnt->flags & SMB_MOUNT_FMODE) in smb_show_options()
444 seq_printf(s, ",file_mode=%04o", mnt->file_mode & S_IRWXUGO); in smb_show_options()
445 if (mnt->flags & SMB_MOUNT_DMODE) in smb_show_options()
446 seq_printf(s, ",dir_mode=%04o", mnt->dir_mode & S_IRWXUGO); in smb_show_options()
448 if (strcmp(mnt->codepage.local_name, CONFIG_NLS_DEFAULT)) in smb_show_options()
449 seq_printf(s, ",iocharset=%s", mnt->codepage.local_name); in smb_show_options()
450 if (strcmp(mnt->codepage.remote_name, SMB_NLS_REMOTE)) in smb_show_options()
451 seq_printf(s, ",codepage=%s", mnt->codepage.remote_name); in smb_show_options()
453 if (mnt->ttl != SMB_TTL_DEFAULT) in smb_show_options()
454 seq_printf(s, ",ttl=%d", mnt->ttl); in smb_show_options()
497 struct smb_mount_data_kernel *mnt; in smb_fill_super() local
532 server->mnt = NULL; in smb_fill_super()
555 server->mnt = mem + sizeof(struct smb_ops); in smb_fill_super()
561 mnt = server->mnt; in smb_fill_super()
563 memset(mnt, 0, sizeof(struct smb_mount_data_kernel)); in smb_fill_super()
564 strlcpy(mnt->codepage.local_name, CONFIG_NLS_DEFAULT, in smb_fill_super()
566 strlcpy(mnt->codepage.remote_name, SMB_NLS_REMOTE, in smb_fill_super()
569 mnt->ttl = SMB_TTL_DEFAULT; in smb_fill_super()
571 mnt->version = oldmnt->version; in smb_fill_super()
573 SET_UID(mnt->uid, oldmnt->uid); in smb_fill_super()
574 SET_GID(mnt->gid, oldmnt->gid); in smb_fill_super()
576 mnt->file_mode = (oldmnt->file_mode & S_IRWXUGO) | S_IFREG; in smb_fill_super()
577 mnt->dir_mode = (oldmnt->dir_mode & S_IRWXUGO) | S_IFDIR; in smb_fill_super()
579 mnt->flags = (oldmnt->file_mode >> 9) | SMB_MOUNT_UID | in smb_fill_super()
582 mnt->file_mode = S_IRWXU | S_IRGRP | S_IXGRP | in smb_fill_super()
584 mnt->dir_mode = S_IRWXU | S_IRGRP | S_IXGRP | in smb_fill_super()
586 if (parse_options(mnt, raw_data)) in smb_fill_super()
589 mnt->mounted_uid = current_uid(); in smb_fill_super()
590 smb_setcodepage(server, &mnt->codepage); in smb_fill_super()
596 if (mnt->flags & SMB_MOUNT_OLDATTR) in smb_fill_super()
598 else if (mnt->flags & SMB_MOUNT_DIRATTR) in smb_fill_super()
629 if (!server->mnt) in smb_fill_super()
662 int smb_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) in smb_getattr() argument
689 if ((attr->ia_valid & ATTR_UID) && (attr->ia_uid != server->mnt->uid)) in smb_notify_change()
692 if ((attr->ia_valid & ATTR_GID) && (attr->ia_uid != server->mnt->gid)) in smb_notify_change()
789 int flags, const char *dev_name, void *data, struct vfsmount *mnt) in smb_get_sb() argument
791 return get_sb_nodev(fs_type, flags, data, smb_fill_super, mnt); in smb_get_sb()