Home
last modified time | relevance | path

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

12

/linux-2.4.37.9/fs/
Dattr.c22 unsigned int ia_valid = attr->ia_valid; in inode_change_ok() local
25 if (ia_valid & ATTR_FORCE) in inode_change_ok()
29 if ((ia_valid & ATTR_UID) && in inode_change_ok()
35 if ((ia_valid & ATTR_GID) && in inode_change_ok()
42 if (ia_valid & ATTR_MODE) { in inode_change_ok()
46 if (!in_group_p((ia_valid & ATTR_GID) ? attr->ia_gid : in inode_change_ok()
52 if (ia_valid & (ATTR_MTIME_SET | ATTR_ATIME_SET)) { in inode_change_ok()
64 unsigned int ia_valid = attr->ia_valid; in inode_setattr() local
67 if (ia_valid & ATTR_SIZE) { in inode_setattr()
73 if (ia_valid & ATTR_UID) in inode_setattr()
[all …]
Dopen.c111 newattrs.ia_valid = ATTR_SIZE | ATTR_CTIME; in do_truncate()
277 newattrs.ia_valid = ATTR_CTIME | ATTR_MTIME | ATTR_ATIME; in sys_utime()
288 newattrs.ia_valid |= ATTR_ATIME_SET | ATTR_MTIME_SET; in sys_utime()
328 newattrs.ia_valid = ATTR_CTIME | ATTR_MTIME | ATTR_ATIME; in sys_utimes()
339 newattrs.ia_valid |= ATTR_ATIME_SET | ATTR_MTIME_SET; in sys_utimes()
503 newattrs.ia_valid = ATTR_MODE | ATTR_CTIME; in sys_fchmod()
535 newattrs.ia_valid = ATTR_MODE | ATTR_CTIME; in sys_chmod()
568 newattrs.ia_valid = ATTR_UID | ATTR_GID | ATTR_CTIME; in chown_common()
583 newattrs.ia_valid |= ATTR_MODE; in chown_common()
597 newattrs.ia_valid |= ATTR_MODE; in chown_common()
/linux-2.4.37.9/fs/adfs/
Dinode.c307 unsigned int ia_valid = attr->ia_valid; in adfs_notify_change() local
316 if ((ia_valid & ATTR_UID && attr->ia_uid != sb->u.adfs_sb.s_uid) || in adfs_notify_change()
317 (ia_valid & ATTR_GID && attr->ia_gid != sb->u.adfs_sb.s_gid)) in adfs_notify_change()
323 if (ia_valid & ATTR_SIZE) in adfs_notify_change()
329 if (ia_valid & ATTR_MTIME) { in adfs_notify_change()
337 if (ia_valid & ATTR_ATIME) in adfs_notify_change()
339 if (ia_valid & ATTR_CTIME) in adfs_notify_change()
341 if (ia_valid & ATTR_MODE) { in adfs_notify_change()
350 if (ia_valid & (ATTR_SIZE | ATTR_MTIME | ATTR_MODE)) in adfs_notify_change()
/linux-2.4.37.9/fs/hfs/
Dinode.c126 (attr->ia_valid == (ATTR_MODE | ATTR_CTIME))) { in __hfs_notify_change()
134 if (((attr->ia_valid & ATTR_UID) && in __hfs_notify_change()
136 ((attr->ia_valid & ATTR_GID) && in __hfs_notify_change()
138 ((attr->ia_valid & ATTR_MODE) && in __hfs_notify_change()
146 attr->ia_valid &= ~ATTR_MODE; in __hfs_notify_change()
147 } else if (attr->ia_valid & ATTR_MODE) { in __hfs_notify_change()
160 if (attr->ia_valid & ATTR_SIZE) { in __hfs_notify_change()
166 attr->ia_valid &= ~ATTR_SIZE; in __hfs_notify_change()
169 attr->ia_valid &= ~ATTR_SIZE; in __hfs_notify_change()
177 attr->ia_valid &= ~ATTR_SIZE; in __hfs_notify_change()
[all …]
/linux-2.4.37.9/fs/nfsd/
Dvfs.c204 if (iap->ia_valid & (ATTR_ATIME | ATTR_MTIME | ATTR_SIZE)) in nfsd_setattr()
206 if (iap->ia_valid & ATTR_SIZE) in nfsd_setattr()
211 if (err || !iap->ia_valid) in nfsd_setattr()
230 if ((iap->ia_valid & BOTH_TIME_SET) == BOTH_TIME_SET in nfsd_setattr()
244 iap->ia_valid &= ~BOTH_TIME_SET; in nfsd_setattr()
249 if (iap->ia_valid & ATTR_SIZE) { in nfsd_setattr()
277 if (iap->ia_valid & ATTR_MODE) { in nfsd_setattr()
283 if ((iap->ia_valid & ATTR_UID) in nfsd_setattr()
287 iap->ia_valid |= ATTR_MODE; in nfsd_setattr()
290 if ((iap->ia_valid & ATTR_GID) in nfsd_setattr()
[all …]
Dnfsproc.c71 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr()
247 if (attr->ia_valid & ATTR_MODE) { in nfsd_proc_create()
260 attr->ia_valid |= ATTR_SIZE; in nfsd_proc_create()
286 attr->ia_valid |= ATTR_MODE; in nfsd_proc_create()
299 } else if (type == S_IFCHR && !(attr->ia_valid & ATTR_SIZE)) { in nfsd_proc_create()
312 attr->ia_valid &= ~ATTR_SIZE; in nfsd_proc_create()
328 argp->name, attr->ia_valid, (long) attr->ia_size); in nfsd_proc_create()
333 attr->ia_valid &= ATTR_SIZE; in nfsd_proc_create()
334 if (attr->ia_valid) in nfsd_proc_create()
442 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd_proc_mkdir()
Dnfsxdr.c99 iap->ia_valid = 0; in decode_sattr()
106 iap->ia_valid |= ATTR_MODE; in decode_sattr()
110 iap->ia_valid |= ATTR_UID; in decode_sattr()
114 iap->ia_valid |= ATTR_GID; in decode_sattr()
118 iap->ia_valid |= ATTR_SIZE; in decode_sattr()
123 iap->ia_valid |= ATTR_ATIME | ATTR_ATIME_SET; in decode_sattr()
128 iap->ia_valid |= ATTR_MTIME | ATTR_MTIME_SET; in decode_sattr()
140 iap->ia_valid &= ~(ATTR_ATIME_SET|ATTR_MTIME_SET); in decode_sattr()
Dnfs3xdr.c117 iap->ia_valid = 0; in decode_sattr3()
120 iap->ia_valid |= ATTR_MODE; in decode_sattr3()
124 iap->ia_valid |= ATTR_UID; in decode_sattr3()
128 iap->ia_valid |= ATTR_GID; in decode_sattr3()
134 iap->ia_valid |= ATTR_SIZE; in decode_sattr3()
142 iap->ia_valid |= ATTR_ATIME; in decode_sattr3()
144 iap->ia_valid |= ATTR_ATIME | ATTR_ATIME_SET; in decode_sattr3()
148 iap->ia_valid |= ATTR_MTIME; in decode_sattr3()
150 iap->ia_valid |= ATTR_MTIME | ATTR_MTIME_SET; in decode_sattr3()
Dnfs3proc.c262 if (!(attr->ia_valid & ATTR_MODE)) { in nfsd3_proc_create()
263 attr->ia_valid |= ATTR_MODE; in nfsd3_proc_create()
291 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd3_proc_mkdir()
/linux-2.4.37.9/fs/xfs/linux-2.4/
Dxfs_iops.c488 unsigned int ia_valid = attr->ia_valid; in linvfs_setattr() local
495 if (ia_valid & ATTR_UID) { in linvfs_setattr()
499 if (ia_valid & ATTR_GID) { in linvfs_setattr()
503 if (ia_valid & ATTR_SIZE) { in linvfs_setattr()
507 if (ia_valid & ATTR_ATIME) { in linvfs_setattr()
512 if (ia_valid & ATTR_MTIME) { in linvfs_setattr()
517 if (ia_valid & ATTR_CTIME) { in linvfs_setattr()
522 if (ia_valid & ATTR_MODE) { in linvfs_setattr()
529 if (ia_valid & (ATTR_MTIME_SET | ATTR_ATIME_SET)) in linvfs_setattr()
/linux-2.4.37.9/fs/reiserfs/
Dfile.c96 if (attr->ia_valid & ATTR_SIZE) { in reiserfs_setattr()
119 if ((((attr->ia_valid & ATTR_UID) && (attr->ia_uid & ~0xffff)) || in reiserfs_setattr()
120 ((attr->ia_valid & ATTR_GID) && (attr->ia_gid & ~0xffff))) && in reiserfs_setattr()
/linux-2.4.37.9/fs/umsdos/
Dinode.c277 if (attr->ia_valid & ATTR_UID) in umsdos_notify_change_locked()
279 if (attr->ia_valid & ATTR_GID) in umsdos_notify_change_locked()
281 if (attr->ia_valid & ATTR_MODE) in umsdos_notify_change_locked()
283 if (attr->ia_valid & ATTR_ATIME) in umsdos_notify_change_locked()
285 if (attr->ia_valid & ATTR_MTIME) in umsdos_notify_change_locked()
287 if (attr->ia_valid & ATTR_CTIME) in umsdos_notify_change_locked()
321 newattrs.ia_valid = ATTR_MTIME | ATTR_ATIME | ATTR_CTIME; in UMSDOS_write_inode()
/linux-2.4.37.9/fs/smbfs/
Dinode.c599 if ((attr->ia_valid & ATTR_UID) && (attr->ia_uid != server->mnt->uid)) in smb_notify_change()
602 if ((attr->ia_valid & ATTR_GID) && (attr->ia_uid != server->mnt->gid)) in smb_notify_change()
605 if ((attr->ia_valid & ATTR_MODE) && (attr->ia_mode & ~mask)) in smb_notify_change()
608 if ((attr->ia_valid & ATTR_SIZE) != 0) { in smb_notify_change()
630 attr->ia_valid &= ~ATTR_SIZE; in smb_notify_change()
646 if ((attr->ia_valid & ATTR_MTIME) != 0) { in smb_notify_change()
650 if ((attr->ia_valid & ATTR_ATIME) != 0) { in smb_notify_change()
667 if ((attr->ia_valid & ATTR_MODE) != 0) { in smb_notify_change()
Ddir.c514 attr.ia_valid = ATTR_MODE; in smb_create()
539 attr.ia_valid = ATTR_MODE; in smb_mkdir()
635 attr.ia_valid = ATTR_MODE | ATTR_UID | ATTR_GID; in smb_make_node()
Dproc.c2940 DEBUG1("valid flags = 0x%04x\n", attr->ia_valid); in smb_proc_setattr_unix()
2974 if (attr->ia_valid & ATTR_SIZE) { in smb_proc_setattr_unix()
2985 if (attr->ia_valid & ATTR_CTIME) { in smb_proc_setattr_unix()
2989 if (attr->ia_valid & ATTR_ATIME) { in smb_proc_setattr_unix()
2993 if (attr->ia_valid & ATTR_MTIME) { in smb_proc_setattr_unix()
2998 if (attr->ia_valid & ATTR_UID) { in smb_proc_setattr_unix()
3001 if (attr->ia_valid & ATTR_GID) { in smb_proc_setattr_unix()
3005 if (attr->ia_valid & ATTR_MODE) { in smb_proc_setattr_unix()
/linux-2.4.37.9/fs/ncpfs/
Dinode.c567 if (((attr->ia_valid & ATTR_UID) && in ncp_notify_change()
571 if (((attr->ia_valid & ATTR_GID) && in ncp_notify_change()
575 if (((attr->ia_valid & ATTR_MODE) && in ncp_notify_change()
584 if ((attr->ia_valid & ATTR_MODE) != 0) in ncp_notify_change()
637 if ((attr->ia_valid & ATTR_CTIME) != 0) { in ncp_notify_change()
644 if ((attr->ia_valid & ATTR_MTIME) != 0) { in ncp_notify_change()
651 if ((attr->ia_valid & ATTR_ATIME) != 0) { in ncp_notify_change()
678 if ((attr->ia_valid & ATTR_SIZE) != 0) { in ncp_notify_change()
/linux-2.4.37.9/fs/affs/
Dinode.c229 pr_debug("AFFS: notify_change(%lu,0x%x)\n",inode->i_ino,attr->ia_valid); in affs_notify_change()
235 if (((attr->ia_valid & ATTR_UID) && (inode->i_sb->u.affs_sb.s_flags & SF_SETUID)) || in affs_notify_change()
236 ((attr->ia_valid & ATTR_GID) && (inode->i_sb->u.affs_sb.s_flags & SF_SETGID)) || in affs_notify_change()
237 ((attr->ia_valid & ATTR_MODE) && in affs_notify_change()
245 if (!error && (attr->ia_valid & ATTR_MODE)) in affs_notify_change()
/linux-2.4.37.9/fs/nfs/
Dnfs3xdr.c190 if (attr->ia_valid & ATTR_MODE) { in xdr_encode_sattr()
196 if (attr->ia_valid & ATTR_UID) { in xdr_encode_sattr()
202 if (attr->ia_valid & ATTR_GID) { in xdr_encode_sattr()
208 if (attr->ia_valid & ATTR_SIZE) { in xdr_encode_sattr()
214 if (attr->ia_valid & ATTR_ATIME_SET) { in xdr_encode_sattr()
217 } else if (attr->ia_valid & ATTR_ATIME) { in xdr_encode_sattr()
222 if (attr->ia_valid & ATTR_MTIME_SET) { in xdr_encode_sattr()
225 } else if (attr->ia_valid & ATTR_MTIME) { in xdr_encode_sattr()
Dproc.c199 sattr->ia_valid &= ~ATTR_SIZE; in nfs_proc_mknod()
201 sattr->ia_valid |= ATTR_SIZE; in nfs_proc_mknod()
Ddir.c658 attr.ia_valid = ATTR_MODE; in nfs_create()
690 attr.ia_valid = ATTR_MODE; in nfs_mknod()
715 attr.ia_valid = ATTR_MODE; in nfs_mkdir()
931 attr.ia_valid = ATTR_MODE; in nfs_symlink()
Dnfs2xdr.c125 *p++ = (attr->ia_valid & flag) ? htonl(attr->field) : ~(u32) 0
134 if (attr->ia_valid & (ATTR_ATIME|ATTR_ATIME_SET)) { in xdr_encode_sattr()
142 if (attr->ia_valid & (ATTR_MTIME|ATTR_MTIME_SET)) { in xdr_encode_sattr()
/linux-2.4.37.9/fs/jffs/
Dinode-v23.c226 update_all = iattr->ia_valid & ATTR_FORCE; in jffs_setattr()
228 if ( (update_all || iattr->ia_valid & ATTR_SIZE) in jffs_setattr()
264 if (update_all || iattr->ia_valid & ATTR_MODE) { in jffs_setattr()
268 if (update_all || iattr->ia_valid & ATTR_UID) { in jffs_setattr()
272 if (update_all || iattr->ia_valid & ATTR_GID) { in jffs_setattr()
276 if (update_all || iattr->ia_valid & ATTR_SIZE) { in jffs_setattr()
307 if (update_all || iattr->ia_valid & ATTR_ATIME) { in jffs_setattr()
311 if (update_all || iattr->ia_valid & ATTR_MTIME) { in jffs_setattr()
315 if (update_all || iattr->ia_valid & ATTR_CTIME) { in jffs_setattr()
/linux-2.4.37.9/fs/intermezzo/
Djournal.c148 newattrs.ia_valid = ATTR_SIZE | ATTR_CTIME; in izo_do_truncate()
1543 if (iattr->ia_valid & ATTR_MTIME_SET) in presto_journal_setattr()
1544 iattr->ia_valid = iattr->ia_valid | ATTR_MTIME; in presto_journal_setattr()
1545 valid = cpu_to_le32(iattr->ia_valid & ~(ATTR_ATIME | ATTR_MTIME_SET | in presto_journal_setattr()
1547 mode = iattr->ia_valid & ATTR_MODE ? cpu_to_le32(iattr->ia_mode): 0; in presto_journal_setattr()
1548 uid = iattr->ia_valid & ATTR_UID ? cpu_to_le32(iattr->ia_uid): 0; in presto_journal_setattr()
1549 gid = iattr->ia_valid & ATTR_GID ? cpu_to_le32(iattr->ia_gid): 0; in presto_journal_setattr()
1550 fsize = iattr->ia_valid & ATTR_SIZE ? cpu_to_le64(iattr->ia_size): 0; in presto_journal_setattr()
1551 mtime = iattr->ia_valid & ATTR_MTIME ? cpu_to_le64(iattr->ia_mtime): 0; in presto_journal_setattr()
1552 ctime = iattr->ia_valid & ATTR_CTIME ? cpu_to_le64(iattr->ia_ctime): 0; in presto_journal_setattr()
[all …]
Dvfs.c242 iattr.ia_valid = valid; in presto_settime()
396 if (iattr->ia_valid & ATTR_SIZE) { in presto_do_setattr()
421 if (!error && (iattr->ia_valid & ATTR_SIZE)) in presto_do_setattr()
432 if ((iattr->ia_valid & ATTR_SIZE) && (old_size != inode->i_size)) { in presto_do_setattr()
475 name, iattr->ia_valid, iattr->ia_mode, iattr->ia_uid, in lento_setattr()
504 if (iattr->ia_valid & ATTR_MODE) { in lento_setattr()
540 if (iattr->ia_valid & ATTR_MODE) in lento_setattr()
2320 iattr.ia_valid = ATTR_MODE|ATTR_FORCE; in presto_setmode()
/linux-2.4.37.9/fs/fat/
Dinode.c1042 if (attr->ia_valid & ATTR_SIZE) { in fat_notify_change()
1051 if (((attr->ia_valid & ATTR_UID) && in fat_notify_change()
1053 ((attr->ia_valid & ATTR_GID) && in fat_notify_change()
1055 ((attr->ia_valid & ATTR_MODE) && in fat_notify_change()

12