Home
last modified time | relevance | path

Searched refs:ia_valid (Results 1 – 25 of 89) sorted by relevance

1234

/linux-2.6.39/fs/
Dattr.c31 unsigned int ia_valid = attr->ia_valid; in inode_change_ok() local
37 if (ia_valid & ATTR_SIZE) { in inode_change_ok()
44 if (ia_valid & ATTR_FORCE) in inode_change_ok()
48 if ((ia_valid & ATTR_UID) && in inode_change_ok()
54 if ((ia_valid & ATTR_GID) && in inode_change_ok()
61 if (ia_valid & ATTR_MODE) { in inode_change_ok()
65 if (!in_group_p((ia_valid & ATTR_GID) ? attr->ia_gid : in inode_change_ok()
71 if (ia_valid & (ATTR_MTIME_SET | ATTR_ATIME_SET | ATTR_TIMES_SET)) { in inode_change_ok()
140 unsigned int ia_valid = attr->ia_valid; in setattr_copy() local
142 if (ia_valid & ATTR_UID) in setattr_copy()
[all …]
Dutimes.c65 newattrs.ia_valid = ATTR_CTIME | ATTR_MTIME | ATTR_ATIME; in utimes_common()
68 newattrs.ia_valid &= ~ATTR_ATIME; in utimes_common()
72 newattrs.ia_valid |= ATTR_ATIME_SET; in utimes_common()
76 newattrs.ia_valid &= ~ATTR_MTIME; in utimes_common()
80 newattrs.ia_valid |= ATTR_MTIME_SET; in utimes_common()
87 newattrs.ia_valid |= ATTR_TIMES_SET; in utimes_common()
Dopen.c47 newattrs.ia_valid = ATTR_SIZE | time_attrs; in do_truncate()
50 newattrs.ia_valid |= ATTR_FILE; in do_truncate()
56 newattrs.ia_valid |= ret | ATTR_FORCE; in do_truncate()
476 newattrs.ia_valid = ATTR_MODE | ATTR_CTIME; in SYSCALL_DEFINE2()
509 newattrs.ia_valid = ATTR_MODE | ATTR_CTIME; in SYSCALL_DEFINE3()
531 newattrs.ia_valid = ATTR_CTIME; in chown_common()
533 newattrs.ia_valid |= ATTR_UID; in chown_common()
537 newattrs.ia_valid |= ATTR_GID; in chown_common()
541 newattrs.ia_valid |= in chown_common()
/linux-2.6.39/fs/fat/
Dfile.c64 ia.ia_valid = ATTR_MODE | ATTR_CTIME; in fat_ioctl_set_attributes()
100 fsnotify_change(file->f_path.dentry, ia.ia_valid); in fat_ioctl_set_attributes()
375 unsigned int ia_valid; in fat_setattr() local
379 ia_valid = attr->ia_valid; in fat_setattr()
380 if (ia_valid & TIMES_SET_FLAGS) { in fat_setattr()
382 attr->ia_valid &= ~TIMES_SET_FLAGS; in fat_setattr()
386 attr->ia_valid = ia_valid; in fat_setattr()
399 if (attr->ia_valid & ATTR_SIZE) { in fat_setattr()
402 if (error || attr->ia_valid == ATTR_SIZE) in fat_setattr()
404 attr->ia_valid &= ~ATTR_SIZE; in fat_setattr()
[all …]
/linux-2.6.39/fs/adfs/
Dinode.c298 unsigned int ia_valid = attr->ia_valid; in adfs_notify_change() local
307 if ((ia_valid & ATTR_UID && attr->ia_uid != ADFS_SB(sb)->s_uid) || in adfs_notify_change()
308 (ia_valid & ATTR_GID && attr->ia_gid != ADFS_SB(sb)->s_gid)) in adfs_notify_change()
315 if (ia_valid & ATTR_SIZE) in adfs_notify_change()
318 if (ia_valid & ATTR_MTIME) { in adfs_notify_change()
326 if (ia_valid & ATTR_ATIME) in adfs_notify_change()
328 if (ia_valid & ATTR_CTIME) in adfs_notify_change()
330 if (ia_valid & ATTR_MODE) { in adfs_notify_change()
339 if (ia_valid & (ATTR_SIZE | ATTR_MTIME | ATTR_MODE)) in adfs_notify_change()
/linux-2.6.39/fs/configfs/
Dinode.c69 unsigned int ia_valid = iattr->ia_valid; in configfs_setattr() local
94 if (ia_valid & ATTR_UID) in configfs_setattr()
96 if (ia_valid & ATTR_GID) in configfs_setattr()
98 if (ia_valid & ATTR_ATIME) in configfs_setattr()
101 if (ia_valid & ATTR_MTIME) in configfs_setattr()
104 if (ia_valid & ATTR_CTIME) in configfs_setattr()
107 if (ia_valid & ATTR_MODE) { in configfs_setattr()
/linux-2.6.39/fs/hostfs/
Dhostfs_kern.c791 attr->ia_valid &= ~ATTR_SIZE; in hostfs_setattr()
793 attrs.ia_valid = 0; in hostfs_setattr()
794 if (attr->ia_valid & ATTR_MODE) { in hostfs_setattr()
795 attrs.ia_valid |= HOSTFS_ATTR_MODE; in hostfs_setattr()
798 if (attr->ia_valid & ATTR_UID) { in hostfs_setattr()
799 attrs.ia_valid |= HOSTFS_ATTR_UID; in hostfs_setattr()
802 if (attr->ia_valid & ATTR_GID) { in hostfs_setattr()
803 attrs.ia_valid |= HOSTFS_ATTR_GID; in hostfs_setattr()
806 if (attr->ia_valid & ATTR_SIZE) { in hostfs_setattr()
807 attrs.ia_valid |= HOSTFS_ATTR_SIZE; in hostfs_setattr()
[all …]
Dhostfs_user.c204 if (attrs->ia_valid & HOSTFS_ATTR_MODE) { in set_attr()
212 if (attrs->ia_valid & HOSTFS_ATTR_UID) { in set_attr()
220 if (attrs->ia_valid & HOSTFS_ATTR_GID) { in set_attr()
228 if (attrs->ia_valid & HOSTFS_ATTR_SIZE) { in set_attr()
243 if (attrs->ia_valid & ma) { in set_attr()
253 if (attrs->ia_valid & HOSTFS_ATTR_ATIME_SET) { in set_attr()
257 if (attrs->ia_valid & HOSTFS_ATTR_MTIME_SET) { in set_attr()
271 if (attrs->ia_valid & (HOSTFS_ATTR_ATIME | HOSTFS_ATTR_MTIME)) { in set_attr()
/linux-2.6.39/include/linux/
Dfsnotify.h278 static inline void fsnotify_change(struct dentry *dentry, unsigned int ia_valid) in fsnotify_change() argument
283 if (ia_valid & ATTR_UID) in fsnotify_change()
285 if (ia_valid & ATTR_GID) in fsnotify_change()
287 if (ia_valid & ATTR_SIZE) in fsnotify_change()
291 if ((ia_valid & (ATTR_ATIME | ATTR_MTIME)) == (ATTR_ATIME | ATTR_MTIME)) in fsnotify_change()
293 else if (ia_valid & ATTR_ATIME) in fsnotify_change()
295 else if (ia_valid & ATTR_MTIME) in fsnotify_change()
298 if (ia_valid & ATTR_MODE) in fsnotify_change()
Dquotaops.h24 return (ia->ia_valid & ATTR_SIZE && ia->ia_size != inode->i_size) || in is_quota_modification()
25 (ia->ia_valid & ATTR_UID && ia->ia_uid != inode->i_uid) || in is_quota_modification()
26 (ia->ia_valid & ATTR_GID && ia->ia_gid != inode->i_gid); in is_quota_modification()
/linux-2.6.39/fs/sysfs/
Dinode.c76 unsigned int ia_valid = iattr->ia_valid; in sysfs_sd_setattr() local
90 if (ia_valid & ATTR_UID) in sysfs_sd_setattr()
92 if (ia_valid & ATTR_GID) in sysfs_sd_setattr()
94 if (ia_valid & ATTR_ATIME) in sysfs_sd_setattr()
96 if (ia_valid & ATTR_MTIME) in sysfs_sd_setattr()
98 if (ia_valid & ATTR_CTIME) in sysfs_sd_setattr()
100 if (ia_valid & ATTR_MODE) { in sysfs_sd_setattr()
/linux-2.6.39/fs/jfs/
Dfile.c104 if ((iattr->ia_valid & ATTR_UID && iattr->ia_uid != inode->i_uid) || in jfs_setattr()
105 (iattr->ia_valid & ATTR_GID && iattr->ia_gid != inode->i_gid)) { in jfs_setattr()
111 if ((iattr->ia_valid & ATTR_SIZE) && in jfs_setattr()
121 if (iattr->ia_valid & ATTR_MODE) in jfs_setattr()
/linux-2.6.39/fs/ramfs/
Dfile-nommu.c162 unsigned int old_ia_valid = ia->ia_valid; in ramfs_nommu_setattr()
171 if (ia->ia_valid & ATTR_SIZE) { in ramfs_nommu_setattr()
176 if (ret < 0 || ia->ia_valid == ATTR_SIZE) in ramfs_nommu_setattr()
182 ia->ia_valid |= ATTR_MTIME|ATTR_CTIME; in ramfs_nommu_setattr()
188 ia->ia_valid = old_ia_valid; in ramfs_nommu_setattr()
/linux-2.6.39/fs/cifs/
Dinode.c952 if (attrs->ia_valid & ATTR_ATIME) {
959 if (attrs->ia_valid & ATTR_MTIME) {
972 if (set_time && (attrs->ia_valid & ATTR_CTIME)) {
1928 direntry->d_name.name, attrs->ia_valid);
1933 attrs->ia_valid |= ATTR_FORCE;
1960 if (attrs->ia_valid & ATTR_SIZE) {
1967 if (attrs->ia_valid & (ATTR_KILL_SUID|ATTR_KILL_SGID))
1968 attrs->ia_valid &= ~ATTR_MODE;
1977 if (attrs->ia_valid & ATTR_MODE)
1982 if (attrs->ia_valid & ATTR_UID)
[all …]
/linux-2.6.39/fs/nfsd/
Dvfs.c316 if (iap->ia_valid & (ATTR_ATIME | ATTR_MTIME | ATTR_SIZE)) in nfsd_setattr()
318 if (iap->ia_valid & ATTR_SIZE) in nfsd_setattr()
331 iap->ia_valid &= ~ATTR_MODE; in nfsd_setattr()
333 if (!iap->ia_valid) in nfsd_setattr()
350 if ((iap->ia_valid & BOTH_TIME_SET) == BOTH_TIME_SET && in nfsd_setattr()
369 iap->ia_valid &= ~BOTH_TIME_SET; in nfsd_setattr()
377 if (iap->ia_valid & ATTR_SIZE) { in nfsd_setattr()
398 if (iap->ia_valid & ATTR_MODE) { in nfsd_setattr()
405 (((iap->ia_valid & ATTR_UID) && iap->ia_uid != inode->i_uid) || in nfsd_setattr()
406 ((iap->ia_valid & ATTR_GID) && iap->ia_gid != inode->i_gid))) { in nfsd_setattr()
[all …]
Dnfsproc.c69 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr()
246 if (attr->ia_valid & ATTR_MODE) { in nfsd_proc_create()
259 attr->ia_valid |= ATTR_SIZE; in nfsd_proc_create()
286 attr->ia_valid |= ATTR_MODE; in nfsd_proc_create()
295 } else if (type == S_IFCHR && !(attr->ia_valid & ATTR_SIZE)) { in nfsd_proc_create()
305 attr->ia_valid &= ~ATTR_SIZE; in nfsd_proc_create()
320 argp->name, attr->ia_valid, (long) attr->ia_size); in nfsd_proc_create()
325 attr->ia_valid &= ATTR_SIZE; in nfsd_proc_create()
326 if (attr->ia_valid) in nfsd_proc_create()
434 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd_proc_mkdir()
Dnfsxdr.c92 iap->ia_valid = 0; in decode_sattr()
99 iap->ia_valid |= ATTR_MODE; in decode_sattr()
103 iap->ia_valid |= ATTR_UID; in decode_sattr()
107 iap->ia_valid |= ATTR_GID; in decode_sattr()
111 iap->ia_valid |= ATTR_SIZE; in decode_sattr()
116 iap->ia_valid |= ATTR_ATIME | ATTR_ATIME_SET; in decode_sattr()
122 iap->ia_valid |= ATTR_MTIME | ATTR_MTIME_SET; in decode_sattr()
135 iap->ia_valid &= ~(ATTR_ATIME_SET|ATTR_MTIME_SET); in decode_sattr()
/linux-2.6.39/fs/ecryptfs/
Dinode.c748 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper()
759 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper()
789 lower_ia->ia_valid |= ATTR_SIZE; in truncate_upper()
826 lower_ia->ia_valid |= ATTR_SIZE; in truncate_upper()
828 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper()
847 struct iattr ia = { .ia_valid = ATTR_SIZE, .ia_size = new_length }; in ecryptfs_truncate()
848 struct iattr lower_ia = { .ia_valid = 0 }; in ecryptfs_truncate()
852 if (!rc && lower_ia.ia_valid & ATTR_SIZE) { in ecryptfs_truncate()
939 if (ia->ia_valid & ATTR_FILE) in ecryptfs_setattr()
941 if (ia->ia_valid & ATTR_SIZE) { in ecryptfs_setattr()
[all …]
/linux-2.6.39/fs/affs/
Dinode.c223 pr_debug("AFFS: notify_change(%lu,0x%x)\n",inode->i_ino,attr->ia_valid); in affs_notify_change()
229 if (((attr->ia_valid & ATTR_UID) && (AFFS_SB(inode->i_sb)->s_flags & SF_SETUID)) || in affs_notify_change()
230 ((attr->ia_valid & ATTR_GID) && (AFFS_SB(inode->i_sb)->s_flags & SF_SETGID)) || in affs_notify_change()
231 ((attr->ia_valid & ATTR_MODE) && in affs_notify_change()
238 if ((attr->ia_valid & ATTR_SIZE) && in affs_notify_change()
248 if (attr->ia_valid & ATTR_MODE) in affs_notify_change()
/linux-2.6.39/fs/ubifs/
Dfile.c1070 if (attr->ia_valid & ATTR_UID) in do_attr_changes()
1072 if (attr->ia_valid & ATTR_GID) in do_attr_changes()
1074 if (attr->ia_valid & ATTR_ATIME) in do_attr_changes()
1077 if (attr->ia_valid & ATTR_MTIME) in do_attr_changes()
1080 if (attr->ia_valid & ATTR_CTIME) in do_attr_changes()
1083 if (attr->ia_valid & ATTR_MODE) { in do_attr_changes()
1221 if (attr->ia_valid & ATTR_SIZE) { in do_setattr()
1227 if (attr->ia_valid & ATTR_SIZE) { in do_setattr()
1237 if (attr->ia_valid & ATTR_SIZE) in do_setattr()
1261 inode->i_ino, inode->i_mode, attr->ia_valid); in ubifs_setattr()
[all …]
/linux-2.6.39/fs/nfs/
Dnfs2xdr.c350 if (attr->ia_valid & ATTR_MODE) in encode_sattr()
354 if (attr->ia_valid & ATTR_UID) in encode_sattr()
358 if (attr->ia_valid & ATTR_GID) in encode_sattr()
362 if (attr->ia_valid & ATTR_SIZE) in encode_sattr()
367 if (attr->ia_valid & ATTR_ATIME_SET) in encode_sattr()
369 else if (attr->ia_valid & ATTR_ATIME) in encode_sattr()
373 if (attr->ia_valid & ATTR_MTIME_SET) in encode_sattr()
375 else if (attr->ia_valid & ATTR_MTIME) in encode_sattr()
Dinode.c414 if (attr->ia_valid & (ATTR_KILL_SUID | ATTR_KILL_SGID)) in nfs_setattr()
415 attr->ia_valid &= ~ATTR_MODE; in nfs_setattr()
417 if (attr->ia_valid & ATTR_SIZE) { in nfs_setattr()
419 attr->ia_valid &= ~ATTR_SIZE; in nfs_setattr()
423 attr->ia_valid &= NFS_VALID_ATTRS; in nfs_setattr()
424 if ((attr->ia_valid & ~ATTR_FILE) == 0) in nfs_setattr()
437 if ((attr->ia_valid & (ATTR_MODE|ATTR_UID|ATTR_GID)) != 0) in nfs_setattr()
485 if ((attr->ia_valid & (ATTR_MODE|ATTR_UID|ATTR_GID)) != 0) { in nfs_setattr_update_inode()
487 if ((attr->ia_valid & ATTR_MODE) != 0) { in nfs_setattr_update_inode()
492 if ((attr->ia_valid & ATTR_UID) != 0) in nfs_setattr_update_inode()
[all …]
Dnfs3xdr.c577 if (attr->ia_valid & ATTR_MODE) in encode_sattr3()
579 if (attr->ia_valid & ATTR_UID) in encode_sattr3()
581 if (attr->ia_valid & ATTR_GID) in encode_sattr3()
583 if (attr->ia_valid & ATTR_SIZE) in encode_sattr3()
585 if (attr->ia_valid & ATTR_ATIME_SET) in encode_sattr3()
587 if (attr->ia_valid & ATTR_MTIME_SET) in encode_sattr3()
591 if (attr->ia_valid & ATTR_MODE) { in encode_sattr3()
597 if (attr->ia_valid & ATTR_UID) { in encode_sattr3()
603 if (attr->ia_valid & ATTR_GID) { in encode_sattr3()
609 if (attr->ia_valid & ATTR_SIZE) { in encode_sattr3()
[all …]
/linux-2.6.39/fs/ncpfs/
Dinode.c890 if (((attr->ia_valid & ATTR_UID) && in ncp_notify_change()
894 if (((attr->ia_valid & ATTR_GID) && in ncp_notify_change()
898 if (((attr->ia_valid & ATTR_MODE) && in ncp_notify_change()
907 if ((attr->ia_valid & ATTR_MODE) != 0) in ncp_notify_change()
946 tmpattr.ia_valid = ATTR_MODE; in ncp_notify_change()
959 if ((attr->ia_valid & ATTR_SIZE) != 0) { in ncp_notify_change()
986 if ((attr->ia_valid & ATTR_CTIME) != 0) { in ncp_notify_change()
991 if ((attr->ia_valid & ATTR_MTIME) != 0) { in ncp_notify_change()
996 if ((attr->ia_valid & ATTR_ATIME) != 0) { in ncp_notify_change()
/linux-2.6.39/fs/hpfs/
Dinode.c264 if ((attr->ia_valid & ATTR_UID) && attr->ia_uid >= 0x10000) in hpfs_setattr()
266 if ((attr->ia_valid & ATTR_GID) && attr->ia_gid >= 0x10000) in hpfs_setattr()
268 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size) in hpfs_setattr()
275 if ((attr->ia_valid & ATTR_SIZE) && in hpfs_setattr()

1234