• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/smbfs/

Lines Matching defs:mnt

355 parse_options(struct smb_mount_data_kernel *mnt, char *options)
378 mnt->version = value;
381 mnt->uid = value;
385 mnt->gid = value;
389 mnt->file_mode = (value & S_IRWXUGO) | S_IFREG;
393 mnt->dir_mode = (value & S_IRWXUGO) | S_IFDIR;
397 strlcpy(mnt->codepage.local_name, optarg,
401 strlcpy(mnt->codepage.remote_name, optarg,
405 mnt->ttl = value;
413 mnt->flags = flags;
425 struct smb_mount_data_kernel *mnt = SMB_SB(m->mnt_sb)->mnt;
429 if (mnt->flags & opts[i].flag)
432 if (mnt->flags & SMB_MOUNT_UID)
433 seq_printf(s, ",uid=%d", mnt->uid);
434 if (mnt->flags & SMB_MOUNT_GID)
435 seq_printf(s, ",gid=%d", mnt->gid);
436 if (mnt->mounted_uid != 0)
437 seq_printf(s, ",mounted_uid=%d", mnt->mounted_uid);
443 if (mnt->flags & SMB_MOUNT_FMODE)
444 seq_printf(s, ",file_mode=%04o", mnt->file_mode & S_IRWXUGO);
445 if (mnt->flags & SMB_MOUNT_DMODE)
446 seq_printf(s, ",dir_mode=%04o", mnt->dir_mode & S_IRWXUGO);
448 if (strcmp(mnt->codepage.local_name, CONFIG_NLS_DEFAULT))
449 seq_printf(s, ",iocharset=%s", mnt->codepage.local_name);
450 if (strcmp(mnt->codepage.remote_name, SMB_NLS_REMOTE))
451 seq_printf(s, ",codepage=%s", mnt->codepage.remote_name);
453 if (mnt->ttl != SMB_TTL_DEFAULT)
454 seq_printf(s, ",ttl=%d", mnt->ttl);
496 struct smb_mount_data_kernel *mnt;
536 server->mnt = NULL;
558 server->mnt = mem + sizeof(struct smb_ops);
564 mnt = server->mnt;
566 memset(mnt, 0, sizeof(struct smb_mount_data_kernel));
567 strlcpy(mnt->codepage.local_name, CONFIG_NLS_DEFAULT,
569 strlcpy(mnt->codepage.remote_name, SMB_NLS_REMOTE,
572 mnt->ttl = SMB_TTL_DEFAULT;
574 mnt->version = oldmnt->version;
576 SET_UID(mnt->uid, oldmnt->uid);
577 SET_GID(mnt->gid, oldmnt->gid);
579 mnt->file_mode = (oldmnt->file_mode & S_IRWXUGO) | S_IFREG;
580 mnt->dir_mode = (oldmnt->dir_mode & S_IRWXUGO) | S_IFDIR;
582 mnt->flags = (oldmnt->file_mode >> 9) | SMB_MOUNT_UID |
585 mnt->file_mode = S_IRWXU | S_IRGRP | S_IXGRP |
587 mnt->dir_mode = S_IRWXU | S_IRGRP | S_IXGRP |
589 if (parse_options(mnt, raw_data))
592 mnt->mounted_uid = current_uid();
593 smb_setcodepage(server, &mnt->codepage);
599 if (mnt->flags & SMB_MOUNT_OLDATTR)
601 else if (mnt->flags & SMB_MOUNT_DIRATTR)
634 if (!server->mnt)
667 int smb_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
694 if ((attr->ia_valid & ATTR_UID) && (attr->ia_uid != server->mnt->uid))
697 if ((attr->ia_valid & ATTR_GID) && (attr->ia_uid != server->mnt->gid))
791 int flags, const char *dev_name, void *data, struct vfsmount *mnt)
793 return get_sb_nodev(fs_type, flags, data, smb_fill_super, mnt);