Searched defs:attr (Results 1 - 25 of 87) sorted by relevance

1234

/fs/minix/
H A Dfile.c26 static int minix_setattr(struct dentry *dentry, struct iattr *attr) argument
31 error = inode_change_ok(inode, attr);
35 if ((attr->ia_valid & ATTR_SIZE) &&
36 attr->ia_size != i_size_read(inode)) {
37 error = inode_newsize_ok(inode, attr->ia_size);
41 truncate_setsize(inode, attr->ia_size);
45 setattr_copy(inode, attr);
/fs/sysv/
H A Dfile.c33 static int sysv_setattr(struct dentry *dentry, struct iattr *attr) argument
38 error = inode_change_ok(inode, attr);
42 if ((attr->ia_valid & ATTR_SIZE) &&
43 attr->ia_size != i_size_read(inode)) {
44 error = inode_newsize_ok(inode, attr->ia_size);
47 truncate_setsize(inode, attr->ia_size);
51 setattr_copy(inode, attr);
/fs/
H A Dattr.c2 * linux/fs/attr.c
22 * @attr: attributes to change
24 * Check if we are allowed to change the attributes contained in @attr
31 int inode_change_ok(const struct inode *inode, struct iattr *attr) argument
33 unsigned int ia_valid = attr->ia_valid;
40 int error = inode_newsize_ok(inode, attr->ia_size);
52 !uid_eq(attr->ia_uid, inode->i_uid)) &&
59 (!in_group_p(attr->ia_gid) && !gid_eq(attr->ia_gid, inode->i_gid))) &&
68 if (!in_group_p((ia_valid & ATTR_GID) ? attr
142 setattr_copy(struct inode *inode, const struct iattr *attr) argument
190 notify_change(struct dentry * dentry, struct iattr * attr, struct inode **delegated_inode) argument
[all...]
/fs/ntfs/
H A Dattrib.h37 * @attr: attribute record in @mrec where to begin/continue search
38 * @is_first: if true ntfs_attr_lookup() begins search with @attr, else after
42 * search, and @attr to point to the first attribute within @mrec (not necessary
46 * If @is_first is 'true', the search begins with @attr. If @is_first is 'false',
47 * the search begins after @attr. This is so that, after the first call to one
54 ATTR_RECORD *attr; member in struct:__anon399
H A Dnamei.c226 a = ctx->attr;
233 fn = (FILE_NAME_ATTR*)((u8*)ctx->attr + le16_to_cpu(
234 ctx->attr->data.resident.value_offset));
306 ATTR_RECORD *attr; local
334 attr = ctx->attr;
335 if (unlikely(attr->non_resident))
337 fn = (FILE_NAME_ATTR *)((u8 *)attr +
338 le16_to_cpu(attr->data.resident.value_offset));
339 if (unlikely((u8 *)fn + le32_to_cpu(attr
[all...]
/fs/ocfs2/cluster/
H A Dsys.c38 static ssize_t version_show(struct kobject *kobj, struct kobj_attribute *attr, argument
47 &attr_version.attr,
H A Dmasklog.c68 struct attribute attr; member in struct:mlog_attribute
72 #define to_mlog_attr(_attr) container_of(_attr, struct mlog_attribute, attr)
75 .attr = { \
107 static ssize_t mlog_show(struct kobject *obj, struct attribute *attr, argument
110 struct mlog_attribute *mlog_attr = to_mlog_attr(attr);
115 static ssize_t mlog_store(struct kobject *obj, struct attribute *attr, argument
118 struct mlog_attribute *mlog_attr = to_mlog_attr(attr);
141 while (mlog_attrs[i].attr.mode) {
142 mlog_attr_ptrs[i] = &mlog_attrs[i].attr;
/fs/coda/
H A Dcoda_linux.c76 void coda_vattr_to_iattr(struct inode *inode, struct coda_vattr *attr) argument
82 switch (attr->va_type) {
100 if (attr->va_mode != (u_short) -1)
101 inode->i_mode = attr->va_mode | inode_type;
102 if (attr->va_uid != -1)
103 inode->i_uid = make_kuid(&init_user_ns, (uid_t) attr->va_uid);
104 if (attr->va_gid != -1)
105 inode->i_gid = make_kgid(&init_user_ns, (gid_t) attr->va_gid);
106 if (attr->va_nlink != -1)
107 set_nlink(inode, attr
[all...]
H A Dcnode.c26 static void coda_fill_inode(struct inode *inode, struct coda_vattr *attr) argument
28 coda_vattr_to_iattr(inode, attr);
41 init_special_inode(inode, inode->i_mode, huge_decode_dev(attr->va_rdev));
60 struct coda_vattr * attr)
81 coda_fill_inode(inode, attr);
93 struct coda_vattr attr; local
98 error = venus_getattr(sb, fid, &attr);
102 inode = coda_iget(sb, fid, &attr);
59 coda_iget(struct super_block * sb, struct CodaFid * fid, struct coda_vattr * attr) argument
/fs/affs/
H A Dinode.c215 affs_notify_change(struct dentry *dentry, struct iattr *attr) argument
220 pr_debug("notify_change(%lu,0x%x)\n", inode->i_ino, attr->ia_valid);
222 error = inode_change_ok(inode,attr);
226 if (((attr->ia_valid & ATTR_UID) && (AFFS_SB(inode->i_sb)->s_flags & SF_SETUID)) ||
227 ((attr->ia_valid & ATTR_GID) && (AFFS_SB(inode->i_sb)->s_flags & SF_SETGID)) ||
228 ((attr->ia_valid & ATTR_MODE) &&
235 if ((attr->ia_valid & ATTR_SIZE) &&
236 attr->ia_size != i_size_read(inode)) {
237 error = inode_newsize_ok(inode, attr->ia_size);
241 truncate_setsize(inode, attr
[all...]
/fs/hpfs/
H A Dinode.c258 int hpfs_setattr(struct dentry *dentry, struct iattr *attr) argument
266 if ((attr->ia_valid & ATTR_UID) &&
267 from_kuid(&init_user_ns, attr->ia_uid) >= 0x10000)
269 if ((attr->ia_valid & ATTR_GID) &&
270 from_kgid(&init_user_ns, attr->ia_gid) >= 0x10000)
272 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size)
275 error = inode_change_ok(inode, attr);
279 if ((attr->ia_valid & ATTR_SIZE) &&
280 attr
[all...]
/fs/ncpfs/
H A Dsymlink.c112 __le32 attr; local
134 attr = aSHARED | aHIDDEN;
140 attr = 0;
155 if (ncp_create_new(dir,dentry,mode,0,attr)) {
/fs/nfs/
H A Dnfs4file.c25 struct iattr attr; local
54 attr.ia_valid = ATTR_OPEN;
56 attr.ia_valid |= ATTR_SIZE;
57 attr.ia_size = 0;
61 inode = NFS_PROTO(dir)->open_context(dir, ctx, openflags, &attr, &opened);
H A Dnamespace.c190 nfs_namespace_setattr(struct dentry *dentry, struct iattr *attr) argument
193 return nfs_setattr(dentry, attr);
/fs/sysfs/
H A Dgroup.c24 struct attribute *const *attr; local
28 for (attr = grp->attrs; *attr; attr++)
29 kernfs_remove_by_name(parent, (*attr)->name);
32 kernfs_remove_by_name(parent, (*bin_attr)->attr.name);
38 struct attribute *const *attr; local
43 for (i = 0, attr = grp->attrs; *attr && !error; i++, attr
269 struct attribute *const *attr; local
297 struct attribute *const *attr; local
[all...]
/fs/afs/
H A Dinode.c459 int afs_setattr(struct dentry *dentry, struct iattr *attr) argument
467 attr->ia_valid);
469 if (!(attr->ia_valid & (ATTR_SIZE | ATTR_MODE | ATTR_UID | ATTR_GID |
481 if (attr->ia_valid & ATTR_FILE) {
482 key = attr->ia_file->private_data;
491 ret = afs_vnode_setattr(vnode, key, attr);
492 if (!(attr->ia_valid & ATTR_FILE))
H A Dvnode.c825 struct iattr *attr)
850 ret = afs_fs_setattr(server, key, vnode, attr, &afs_sync_call);
824 afs_vnode_setattr(struct afs_vnode *vnode, struct key *key, struct iattr *attr) argument
/fs/configfs/
H A Dfile.c66 struct configfs_attribute * attr = to_attr(dentry); local
77 count = ops->show_attribute(item,attr,buffer->page);
172 struct configfs_attribute * attr = to_attr(dentry); local
176 return ops->store_attribute(item,attr,buffer->page,count);
216 struct configfs_attribute * attr = to_attr(file->f_path.dentry); local
221 if (!item || !attr)
225 if (!try_module_get(attr->ca_owner)) {
275 module_put(attr->ca_owner);
290 struct configfs_attribute * attr = to_attr(filp->f_path.dentry); local
291 struct module * owner = attr
317 configfs_add_file(struct dentry * dir, const struct configfs_attribute * attr, int type) argument
337 configfs_create_file(struct config_item * item, const struct configfs_attribute * attr) argument
[all...]
H A Dinode.c226 struct configfs_attribute *attr; local
235 attr = sd->s_element;
236 return attr->ca_name;
/fs/exofs/
H A Dsys.c28 struct attribute attr; member in struct:odev_attr
33 static ssize_t odev_attr_show(struct kobject *kobj, struct attribute *attr, argument
37 struct odev_attr *a = container_of(attr, struct odev_attr, attr);
42 static ssize_t odev_attr_store(struct kobject *kobj, struct attribute *attr, argument
46 struct odev_attr *a = container_of(attr, struct odev_attr, attr);
103 &odev_attr_osdname.attr,
104 &odev_attr_systemid.attr,
105 &odev_attr_uri.attr,
[all...]
/fs/jffs2/
H A Dacl.c243 struct iattr attr; local
245 attr.ia_valid = ATTR_MODE | ATTR_CTIME;
246 attr.ia_mode = mode;
247 attr.ia_ctime = CURRENT_TIME_SEC;
248 rc = jffs2_do_setattr(inode, &attr);
/fs/adfs/
H A Dinode.c91 unsigned int attr = ADFS_I(inode)->attr; local
95 if (attr & ADFS_NDA_DIRECTORY) {
114 if (attr & ADFS_NDA_OWNER_READ)
117 if (attr & ADFS_NDA_OWNER_WRITE)
120 if (attr & ADFS_NDA_PUBLIC_READ)
123 if (attr & ADFS_NDA_PUBLIC_WRITE)
136 int attr; local
141 return ADFS_I(inode)->attr;
144 attr
299 adfs_notify_change(struct dentry *dentry, struct iattr *attr) argument
[all...]
/fs/fat/
H A Dfile.c24 u32 attr; local
27 attr = fat_make_attrs(inode);
30 return put_user(attr, user_attr);
38 u32 attr, oldattr; local
42 err = get_user(attr, user_attr);
57 attr &= 0xff & ~(ATTR_VOLUME | ATTR_DIR);
59 attr |= (MSDOS_I(inode)->i_attrs & ATTR_VOLUME) |
67 ia.ia_mode = fat_make_mode(sbi, attr, S_IRWXUGO);
69 ia.ia_mode = fat_make_mode(sbi, attr,
74 if (inode->i_ino == MSDOS_ROOT_INO && attr !
383 fat_setattr(struct dentry *dentry, struct iattr *attr) argument
[all...]
/fs/logfs/
H A Dfile.c242 static int logfs_setattr(struct dentry *dentry, struct iattr *attr) argument
247 err = inode_change_ok(inode, attr);
251 if (attr->ia_valid & ATTR_SIZE) {
252 err = logfs_truncate(inode, attr->ia_size);
257 setattr_copy(inode, attr);
/fs/nfsd/
H A Dnfs3proc.c214 struct iattr *attr; local
224 attr = &argp->attrs;
227 attr->ia_mode &= ~S_IFMT;
228 if (!(attr->ia_valid & ATTR_MODE)) {
229 attr->ia_valid |= ATTR_MODE;
230 attr->ia_mode = S_IFREG;
232 attr->ia_mode = (attr->ia_mode & ~S_IFMT) | S_IFREG;
237 attr, newfhp,

Completed in 1389 milliseconds

1234