Home
last modified time | relevance | path

Searched refs:gid (Results 1 – 25 of 104) sorted by relevance

12345

/fs/nfsd/
Dauth.h12 #define nfsd_lgid(rq, gid) ((u32)(gid)) argument
14 #define nfsd_rgid(rq, gid) ((u32)(gid)) argument
/fs/gfs2/
Dquota.h19 extern int gfs2_quota_hold(struct gfs2_inode *ip, u32 uid, u32 gid);
22 extern int gfs2_quota_lock(struct gfs2_inode *ip, u32 uid, u32 gid);
25 extern int gfs2_quota_check(struct gfs2_inode *ip, u32 uid, u32 gid);
27 u32 uid, u32 gid);
Dinode.c368 unsigned int *uid, unsigned int *gid) in munge_mode_uid_gid() argument
383 *gid = dip->i_inode.i_gid; in munge_mode_uid_gid()
385 *gid = current_fsgid(); in munge_mode_uid_gid()
447 unsigned int uid, unsigned int gid, in init_dinode() argument
466 di->di_gid = cpu_to_be32(gid); in init_dinode()
520 unsigned int uid, gid; in make_dinode() local
523 munge_mode_uid_gid(dip, &mode, &uid, &gid); in make_dinode()
527 error = gfs2_quota_lock(dip, uid, gid); in make_dinode()
531 error = gfs2_quota_check(dip, uid, gid); in make_dinode()
539 init_dinode(dip, gl, inum, mode, uid, gid, generation, dev, symname, size, bhp); in make_dinode()
[all …]
Dquota.c494 int gfs2_quota_hold(struct gfs2_inode *ip, u32 uid, u32 gid) in gfs2_quota_hold() argument
528 if (gid != NO_QUOTA_CHANGE && gid != ip->i_inode.i_gid) { in gfs2_quota_hold()
529 error = qdsb_get(sdp, QUOTA_GROUP, gid, qd); in gfs2_quota_hold()
915 int gfs2_quota_lock(struct gfs2_inode *ip, u32 uid, u32 gid) in gfs2_quota_lock() argument
923 error = gfs2_quota_hold(ip, uid, gid); in gfs2_quota_lock()
1038 int gfs2_quota_check(struct gfs2_inode *ip, u32 uid, u32 gid) in gfs2_quota_check() argument
1057 (qd->qd_id == gid && !test_bit(QDF_USER, &qd->qd_flags)))) in gfs2_quota_check()
1090 u32 uid, u32 gid) in gfs2_quota_change() argument
1105 (qd->qd_id == gid && !test_bit(QDF_USER, &qd->qd_flags))) { in gfs2_quota_change()
/fs/hpfs/
Dsuper.c254 static int parse_opts(char *opts, uid_t *uid, gid_t *gid, umode_t *umask, in parse_opts() argument
284 *gid = option; in parse_opts()
382 gid_t gid; in hpfs_remount_fs() local
393 uid = sbi->sb_uid; gid = sbi->sb_gid; in hpfs_remount_fs()
399 if (!(o = parse_opts(data, &uid, &gid, &umask, &lowercase, in hpfs_remount_fs()
415 sbi->sb_uid = uid; sbi->sb_gid = gid; in hpfs_remount_fs()
459 gid_t gid; in hpfs_fill_super() local
484 gid = current_gid(); in hpfs_fill_super()
493 if (!(o = parse_opts(options, &uid, &gid, &umask, &lowercase, in hpfs_fill_super()
541 sbi->sb_gid = gid; in hpfs_fill_super()
/fs/affs/
Dsuper.c174 parse_options(char *options, uid_t *uid, gid_t *gid, int *mode, int *reserved, s32 *root, in parse_options() argument
183 *gid = current_gid(); in parse_options()
239 *gid = option; in parse_options()
288 gid_t gid; in affs_fill_super() local
311 if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block, in affs_fill_super()
324 sbi->s_gid = gid; in affs_fill_super()
511 gid_t gid; in affs_remount() local
526 if (!parse_options(data, &uid, &gid, &mode, &reserved, &root_block, in affs_remount()
539 sbi->s_gid = gid; in affs_remount()
Dinode.c87 id = be16_to_cpu(tail->gid); in affs_iget()
176 gid_t gid; in affs_write_inode() local
197 gid = inode->i_gid; in affs_write_inode()
202 gid = inode->i_gid ^ ~0; in affs_write_inode()
207 tail->gid = cpu_to_be16(gid); in affs_write_inode()
/fs/9p/
Dvfs_inode_dotl.c260 gid_t gid; in v9fs_vfs_create_dotl() local
304 gid = v9fs_get_fsgid_for_create(dir); in v9fs_vfs_create_dotl()
315 mode, gid, &qid); in v9fs_vfs_create_dotl()
402 gid_t gid; in v9fs_vfs_mkdir_dotl() local
427 gid = v9fs_get_fsgid_for_create(dir); in v9fs_vfs_mkdir_dotl()
437 err = p9_client_mkdir_dotl(dfid, name, mode, gid, &qid); in v9fs_vfs_mkdir_dotl()
588 p9attr.gid = iattr->ia_gid; in v9fs_vfs_setattr_dotl()
703 gid_t gid; in v9fs_vfs_symlink_dotl() local
722 gid = v9fs_get_fsgid_for_create(dir); in v9fs_vfs_symlink_dotl()
725 err = p9_client_symlink(dfid, name, (char *)symname, gid, &qid); in v9fs_vfs_symlink_dotl()
[all …]
/fs/nfs/
Didmap.c115 __u32 gid; in nfs_fattr_map_group_name() local
119 if (nfs_map_group_to_gid(server, group->data, group->len, &gid) == 0) { in nfs_fattr_map_group_name()
120 fattr->gid = gid; in nfs_fattr_map_group_name()
805 …nfs_map_group_to_gid(const struct nfs_server *server, const char *name, size_t namelen, __u32 *gid) in nfs_map_group_to_gid() argument
809 if (nfs_map_string_to_numeric(name, namelen, gid)) in nfs_map_group_to_gid()
811 return nfs_idmap_lookup_id(name, namelen, "gid", gid, idmap); in nfs_map_group_to_gid()
825 int nfs_map_gid_to_group(const struct nfs_server *server, __u32 gid, char *buf, size_t buflen) in nfs_map_gid_to_group() argument
831 ret = nfs_idmap_lookup_name(gid, "group", buf, buflen, idmap); in nfs_map_gid_to_group()
833 ret = nfs_map_numeric_to_string(gid, buf, buflen); in nfs_map_gid_to_group()
/fs/hfsplus/
Doptions.c57 opts->gid = current_gid(); in hfsplus_fill_defaults()
145 sbi->gid = (gid_t)tmp; in hfsplus_parse_options()
218 sbi->uid, sbi->gid); in hfsplus_show_options()
/fs/xfs/
Dxfs_iops.c426 stat->gid = ip->i_d.di_gid; in xfs_vn_getattr()
494 gid_t gid = 0, igid = 0; in xfs_setattr_nonsize() local
530 gid = iattr->ia_gid; in xfs_setattr_nonsize()
533 gid = ip->i_d.di_gid; in xfs_setattr_nonsize()
543 error = xfs_qm_vop_dqalloc(ip, uid, gid, xfs_get_projid(ip), in xfs_setattr_nonsize()
568 gid = (mask & ATTR_GID) ? iattr->ia_gid : igid; in xfs_setattr_nonsize()
577 (XFS_IS_GQUOTA_ON(mp) && igid != gid))) { in xfs_setattr_nonsize()
617 if (igid != gid) { in xfs_setattr_nonsize()
625 ip->i_d.di_gid = gid; in xfs_setattr_nonsize()
626 inode->i_gid = gid; in xfs_setattr_nonsize()
/fs/autofs4/
Dinode.c40 ino->gid = 0; in autofs4_clean_ino()
129 static int parse_options(char *options, int *pipefd, uid_t *uid, gid_t *gid, in parse_options() argument
137 *gid = current_gid(); in parse_options()
167 *gid = option; in parse_options()
Dwaitq.c167 packet->gid = wq->gid; in autofs4_notify_daemon()
427 wq->gid = current_gid(); in autofs4_wait()
518 ino->gid = wq->gid; in autofs4_wait()
/fs/ncpfs/
Dinode.c231 inode->i_gid = server->m.gid; in ncp_set_attr()
331 if (server->m.gid != 0) in ncp_show_options()
332 seq_printf(seq, ",gid=%u", server->m.gid); in ncp_show_options()
385 data->gid = 0; in ncp_parse_options()
400 data->gid = optint; in ncp_parse_options()
484 data.gid = md->gid; in ncp_fill_super()
503 data.gid = md->gid; in ncp_fill_super()
889 (attr->ia_gid != server->m.gid))) in ncp_notify_change()
/fs/debugfs/
Dinode.c134 gid_t gid; member
179 opts->gid = option; in debugfs_parse_options()
206 inode->i_gid = opts->gid; in debugfs_apply_options()
233 if (opts->gid != 0) in debugfs_show_options()
234 seq_printf(m, ",gid=%u", opts->gid); in debugfs_show_options()
/fs/nfs_common/
Dnfsacl.c42 gid_t gid; member
66 *p++ = htonl(nfsacl_desc->gid); in xdr_nfsace_encode()
105 .gid = inode->i_gid, in nfsacl_encode()
/fs/jfs/
Dsuper.c329 char *gid = args[0].from; in parse_options() local
330 sbi->gid = simple_strtoul(gid, &gid, 0); in parse_options()
446 sbi->uid = sbi->gid = sbi->umask = -1; in jfs_fill_super()
617 if (sbi->gid != -1) in jfs_show_options()
618 seq_printf(seq, ",gid=%d", sbi->gid); in jfs_show_options()
/fs/devpts/
Dinode.c102 gid_t gid; member
165 opts->gid = 0; in parse_mount_options()
193 opts->gid = option; in parse_mount_options()
320 seq_printf(seq, ",gid=%u", opts->gid); in devpts_show_options()
564 inode->i_gid = opts->setgid ? opts->gid : current_fsgid(); in devpts_pty_new()
/fs/yaffs2/
Dyaffs_attribs.c47 void yaffs_attribs_init(struct yaffs_obj *obj, u32 gid, u32 uid, u32 rdev) in yaffs_attribs_init() argument
52 obj->yst_gid = gid; in yaffs_attribs_init()
Dyaffs_attribs.h23 void yaffs_attribs_init(struct yaffs_obj *obj, u32 gid, u32 uid, u32 rdev);
Dyaffs_guts.h871 u32 gid);
883 u32 mode, u32 uid, u32 gid);
897 u32 gid, const YCHAR *alias);
903 u32 gid, u32 rdev);
/fs/jffs2/
Dfs.c103 ri->gid = cpu_to_je16((ivalid & ATTR_GID)?iattr->ia_gid:inode->i_gid); in jffs2_do_setattr()
151 inode->i_gid = je16_to_cpu(ri->gid); in jffs2_do_setattr()
280 inode->i_gid = je16_to_cpu(latest_node.gid); in jffs2_iget()
446 ri->gid = cpu_to_je16(dir_i->i_gid); in jffs2_new_inode()
450 ri->gid = cpu_to_je16(current_fsgid()); in jffs2_new_inode()
470 inode->i_gid = je16_to_cpu(ri->gid); in jffs2_new_inode()
/fs/cifs/
Ddir.c284 args.gid = (__u64) inode->i_gid; in cifs_create()
286 args.gid = (__u64) current_fsgid(); in cifs_create()
289 args.gid = NO_CHANGE_64; in cifs_create()
404 args.gid = (__u64) current_fsgid(); in cifs_mknod()
407 args.gid = NO_CHANGE_64; in cifs_mknod()
DREADME133 Note that uid, gid and file permissions will display default values if you do
269 the uid, gid and mode so this parameter should not be
270 specified unless the server and clients uid and gid
274 and gid can be retrieved from the server (and uid
275 and gid would not have to be specifed on the mount.
277 extensions, the default uid (and gid) returned on lookup
278 of existing files will be the uid (gid) of the person
281 (gid) mount option is specified. Also note that permission
285 servers which do not report a uid/gid owner
295 noforcegid (similar to above but for the group owner, gid, instead of uid)
[all …]
/fs/
Dstat.c28 stat->gid = inode->i_gid; in generic_fillattr()
141 SET_GID(tmp.st_gid, stat->gid); in cp_old_stat()
219 SET_GID(tmp.st_gid, stat->gid); in cp_new_stat()
354 tmp.st_gid = stat->gid; in cp_new_stat64()

12345