Lines Matching refs:attr
545 int ncp_notify_change(struct dentry *dentry, struct iattr *attr) in ncp_notify_change() argument
562 result = inode_change_ok(inode, attr); in ncp_notify_change()
567 if (((attr->ia_valid & ATTR_UID) && in ncp_notify_change()
568 (attr->ia_uid != server->m.uid))) in ncp_notify_change()
571 if (((attr->ia_valid & ATTR_GID) && in ncp_notify_change()
572 (attr->ia_gid != server->m.gid))) in ncp_notify_change()
575 if (((attr->ia_valid & ATTR_MODE) && in ncp_notify_change()
576 (attr->ia_mode & in ncp_notify_change()
584 if ((attr->ia_valid & ATTR_MODE) != 0) in ncp_notify_change()
590 newmode = attr->ia_mode; in ncp_notify_change()
610 newmode=attr->ia_mode; in ncp_notify_change()
637 if ((attr->ia_valid & ATTR_CTIME) != 0) { in ncp_notify_change()
639 ncp_date_unix2dos(attr->ia_ctime, in ncp_notify_change()
644 if ((attr->ia_valid & ATTR_MTIME) != 0) { in ncp_notify_change()
646 ncp_date_unix2dos(attr->ia_mtime, in ncp_notify_change()
651 if ((attr->ia_valid & ATTR_ATIME) != 0) { in ncp_notify_change()
654 ncp_date_unix2dos(attr->ia_atime, in ncp_notify_change()
678 if ((attr->ia_valid & ATTR_SIZE) != 0) { in ncp_notify_change()
682 attr->ia_size); in ncp_notify_change()
688 attr->ia_size, 0, "", &written); in ncp_notify_change()
695 result = vmtruncate(inode, attr->ia_size); in ncp_notify_change()