/linux-2.4.37.9/fs/ntfs/ |
D | attr.c | 202 int ntfs_make_attr_resident(ntfs_inode *ino, ntfs_attribute *attr) in ntfs_make_attr_resident() argument 204 __s64 size = attr->size; in ntfs_make_attr_resident() 209 attr->resident = 1; in ntfs_make_attr_resident() 214 int ntfs_insert_run(ntfs_attribute *attr, int cnum, ntfs_cluster_t cluster, in ntfs_insert_run() argument 218 if ((attr->d.r.len * sizeof(ntfs_runlist)) % PAGE_SIZE == 0) { in ntfs_insert_run() 224 attr->d.r.len); in ntfs_insert_run() 225 new_size = attr->d.r.len * sizeof(ntfs_runlist) + PAGE_SIZE; in ntfs_insert_run() 239 if (attr->d.r.runlist) { in ntfs_insert_run() 240 ntfs_memcpy(new, attr->d.r.runlist, attr->d.r.len in ntfs_insert_run() 242 ntfs_vfree(attr->d.r.runlist); in ntfs_insert_run() [all …]
|
D | inode.c | 162 ntfs_u8 *attr) in ntfs_insert_mft_attribute() argument 191 if (NTFS_GETU32(attr) == -1) { in ntfs_insert_mft_attribute() 196 error = ntfs_insert_attribute(ino, attr); in ntfs_insert_mft_attribute() 206 ntfs_u8 *mft, *attr; in parse_attributes() local 212 if (!ino->attr) { in parse_attributes() 248 attr = ntfs_find_attr_in_mft_rec( in parse_attributes() 251 ino->attr: /* base record */ in parse_attributes() 259 if (!attr) { in parse_attributes() 265 error = ntfs_insert_mft_attribute(ino, mftno, attr); in parse_attributes() 345 ino->attr: /* base record */ in parse_attributes() [all …]
|
D | attr.h | 12 int ntfs_extend_attr(ntfs_inode *ino, ntfs_attribute *attr, const __s64 len); 14 int ntfs_resize_attr(ntfs_inode *ino, ntfs_attribute *attr, __s64 newsize); 18 int ntfs_read_compressed(ntfs_inode *ino, ntfs_attribute *attr, __s64 offset, 21 int ntfs_write_compressed(ntfs_inode *ino, ntfs_attribute *attr, __s64 offset, 29 int ntfs_make_attr_nonresident(ntfs_inode *ino, ntfs_attribute *attr); 36 int ntfs_insert_run(ntfs_attribute *attr, int cnum, ntfs_cluster_t cluster,
|
/linux-2.4.37.9/fs/coda/ |
D | coda_linux.c | 115 void coda_vattr_to_iattr(struct inode *inode, struct coda_vattr *attr) in coda_vattr_to_iattr() argument 121 switch (attr->va_type) { in coda_vattr_to_iattr() 139 if (attr->va_mode != (u_short) -1) in coda_vattr_to_iattr() 140 inode->i_mode = attr->va_mode | inode_type; in coda_vattr_to_iattr() 141 if (attr->va_uid != -1) in coda_vattr_to_iattr() 142 inode->i_uid = (uid_t) attr->va_uid; in coda_vattr_to_iattr() 143 if (attr->va_gid != -1) in coda_vattr_to_iattr() 144 inode->i_gid = (gid_t) attr->va_gid; in coda_vattr_to_iattr() 145 if (attr->va_nlink != -1) in coda_vattr_to_iattr() 146 inode->i_nlink = attr->va_nlink; in coda_vattr_to_iattr() [all …]
|
D | cnode.c | 42 static void coda_fill_inode(struct inode *inode, struct coda_vattr *attr) in coda_fill_inode() argument 47 print_vattr(attr); in coda_fill_inode() 49 coda_vattr_to_iattr(inode, attr); in coda_fill_inode() 62 init_special_inode(inode, inode->i_mode, attr->va_rdev); in coda_fill_inode() 66 struct coda_vattr * attr) in coda_iget() argument 90 coda_fill_inode(inode, attr); in coda_iget() 102 struct coda_vattr attr; in coda_cnode_make() local 106 error = venus_getattr(sb, fid, &attr); in coda_cnode_make() 115 *inode = coda_iget(sb, fid, &attr); in coda_cnode_make()
|
/linux-2.4.37.9/fs/ |
D | attr.c | 19 int inode_change_ok(struct inode *inode, struct iattr *attr) in inode_change_ok() argument 22 unsigned int ia_valid = attr->ia_valid; in inode_change_ok() 31 attr->ia_uid != inode->i_uid) && !capable(CAP_CHOWN)) in inode_change_ok() 37 (!in_group_p(attr->ia_gid) && attr->ia_gid != inode->i_gid)) && in inode_change_ok() 46 if (!in_group_p((ia_valid & ATTR_GID) ? attr->ia_gid : in inode_change_ok() 48 attr->ia_mode &= ~S_ISGID; in inode_change_ok() 62 int inode_setattr(struct inode * inode, struct iattr * attr) in inode_setattr() argument 64 unsigned int ia_valid = attr->ia_valid; in inode_setattr() 68 error = vmtruncate(inode, attr->ia_size); in inode_setattr() 74 inode->i_uid = attr->ia_uid; in inode_setattr() [all …]
|
/linux-2.4.37.9/fs/adfs/ |
D | inode.c | 107 unsigned int filetype, attr = inode->u.adfs_i.attr; in adfs_atts2mode() local 110 if (attr & ADFS_NDA_DIRECTORY) { in adfs_atts2mode() 131 if (attr & ADFS_NDA_OWNER_READ) in adfs_atts2mode() 134 if (attr & ADFS_NDA_OWNER_WRITE) in adfs_atts2mode() 137 if (attr & ADFS_NDA_PUBLIC_READ) in adfs_atts2mode() 140 if (attr & ADFS_NDA_PUBLIC_WRITE) in adfs_atts2mode() 153 int attr; in adfs_mode2atts() local 157 return inode->u.adfs_i.attr; in adfs_mode2atts() 160 attr = ADFS_NDA_DIRECTORY; in adfs_mode2atts() 162 attr = 0; in adfs_mode2atts() [all …]
|
/linux-2.4.37.9/fs/hfs/ |
D | inode.c | 114 static int __hfs_notify_change(struct dentry *dentry, struct iattr * attr, int kind) in __hfs_notify_change() argument 122 error = inode_change_ok(inode, attr); /* basic permission checks */ in __hfs_notify_change() 126 (attr->ia_valid == (ATTR_MODE | ATTR_CTIME))) { in __hfs_notify_change() 134 if (((attr->ia_valid & ATTR_UID) && in __hfs_notify_change() 135 (attr->ia_uid != hsb->s_uid)) || in __hfs_notify_change() 136 ((attr->ia_valid & ATTR_GID) && in __hfs_notify_change() 137 (attr->ia_gid != hsb->s_gid)) || in __hfs_notify_change() 138 ((attr->ia_valid & ATTR_MODE) && in __hfs_notify_change() 140 (attr->ia_mode != inode->i_mode))|| in __hfs_notify_change() 141 (attr->ia_mode & ~HFS_VALID_MODE_BITS)))) { in __hfs_notify_change() [all …]
|
/linux-2.4.37.9/fs/reiserfs/ |
D | file.c | 93 static int reiserfs_setattr(struct dentry *dentry, struct iattr *attr) { in reiserfs_setattr() argument 96 if (attr->ia_valid & ATTR_SIZE) { in reiserfs_setattr() 101 attr->ia_size > MAX_NON_LFS) in reiserfs_setattr() 105 if (attr->ia_size > inode->i_size) { in reiserfs_setattr() 106 error = generic_cont_expand(inode, attr->ia_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() 125 error = inode_change_ok(inode, attr) ; in reiserfs_setattr() 127 inode_setattr(inode, attr) ; in reiserfs_setattr()
|
/linux-2.4.37.9/fs/smbfs/ |
D | inode.c | 117 fattr->attr = inode->u.smbfs_i.attr; in smb_get_inode_attr() 122 fattr->attr &= ~aRONLY; in smb_get_inode_attr() 124 fattr->attr |= aRONLY; in smb_get_inode_attr() 152 inode->u.smbfs_i.attr = fattr->attr; in smb_set_inode_attr() 583 smb_notify_change(struct dentry *dentry, struct iattr *attr) in smb_notify_change() argument 595 if ((error = inode_change_ok(inode, attr)) < 0) in smb_notify_change() 599 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() [all …]
|
D | proc.c | 69 __u16 attr); 1108 ino->u.smbfs_i.attr = WVAL(server->packet, smb_vwv1); in smb_proc_open() 1440 smb_proc_create(struct dentry *dentry, __u16 attr, time_t ctime, __u16 *fileid) in smb_proc_create() argument 1450 WSET(server->packet, smb_vwv0, attr); in smb_proc_create() 1565 if (fattr.attr & aRONLY) { /* read only attribute is set */ in smb_set_rw() 1566 fattr.attr &= ~aRONLY; in smb_set_rw() 1567 result = smb_proc_setattr_core(server, dentry, fattr.attr); in smb_set_rw() 1724 if (fattr->attr & aDIR) { in smb_finish_dirent() 1729 if (fattr->attr & aRONLY) in smb_finish_dirent() 1743 fattr->attr = aDIR; in smb_init_root_dirent() [all …]
|
D | dir.c | 505 struct iattr attr; in smb_create() local 514 attr.ia_valid = ATTR_MODE; in smb_create() 515 attr.ia_mode = mode; in smb_create() 516 error = smb_proc_setattr_unix(dentry, &attr, 0, 0); in smb_create() 532 struct iattr attr; in smb_mkdir() local 539 attr.ia_valid = ATTR_MODE; in smb_mkdir() 540 attr.ia_mode = mode; in smb_mkdir() 541 error = smb_proc_setattr_unix(dentry, &attr, 0, 0); in smb_mkdir() 633 struct iattr attr; in smb_make_node() local 635 attr.ia_valid = ATTR_MODE | ATTR_UID | ATTR_GID; in smb_make_node() [all …]
|
D | proto.h | 17 extern int smb_proc_create(struct dentry *dentry, __u16 attr, time_t ctime, __u16 *fileid); 27 extern int smb_proc_setattr_unix(struct dentry *dentry, struct iattr *attr, unsigned int major, uns… 29 extern int smb_proc_dskattr(struct super_block *sb, struct statfs *attr); 60 extern int smb_notify_change(struct dentry *dentry, struct iattr *attr);
|
/linux-2.4.37.9/fs/umsdos/ |
D | inode.c | 160 int UMSDOS_notify_change (struct dentry *dentry, struct iattr *attr) in UMSDOS_notify_change() argument 206 ret = inode_change_ok (inode, attr); in UMSDOS_notify_change() 211 ret = umsdos_notify_change_locked(dentry, attr); in UMSDOS_notify_change() 214 ret = inode_setattr (inode, attr); in UMSDOS_notify_change() 225 int umsdos_notify_change_locked(struct dentry *dentry, struct iattr *attr) in umsdos_notify_change_locked() argument 277 if (attr->ia_valid & ATTR_UID) in umsdos_notify_change_locked() 278 entry->uid = cpu_to_le16(attr->ia_uid); in umsdos_notify_change_locked() 279 if (attr->ia_valid & ATTR_GID) in umsdos_notify_change_locked() 280 entry->gid = cpu_to_le16(attr->ia_gid); in umsdos_notify_change_locked() 281 if (attr->ia_valid & ATTR_MODE) in umsdos_notify_change_locked() [all …]
|
/linux-2.4.37.9/fs/xfs/linux-2.4/ |
D | xfs_iops.c | 485 struct iattr *attr) in linvfs_setattr() argument 488 unsigned int ia_valid = attr->ia_valid; in linvfs_setattr() 497 vattr.va_uid = attr->ia_uid; in linvfs_setattr() 501 vattr.va_gid = attr->ia_gid; in linvfs_setattr() 505 vattr.va_size = attr->ia_size; in linvfs_setattr() 509 vattr.va_atime.tv_sec = attr->ia_atime; in linvfs_setattr() 514 vattr.va_mtime.tv_sec = attr->ia_mtime; in linvfs_setattr() 519 vattr.va_ctime.tv_sec = attr->ia_ctime; in linvfs_setattr() 524 vattr.va_mode = attr->ia_mode; in linvfs_setattr() 555 char *attr = (char *)name; in linvfs_setxattr() local [all …]
|
/linux-2.4.37.9/fs/ncpfs/ |
D | inode.c | 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() [all …]
|
/linux-2.4.37.9/fs/nfsd/ |
D | nfsproc.c | 197 struct iattr *attr = &argp->attrs; in nfsd_proc_create() local 247 if (attr->ia_valid & ATTR_MODE) { in nfsd_proc_create() 248 type = attr->ia_mode & S_IFMT; in nfsd_proc_create() 249 mode = attr->ia_mode & ~S_IFMT; in nfsd_proc_create() 259 attr->ia_size = inode->i_rdev; in nfsd_proc_create() 260 attr->ia_valid |= ATTR_SIZE; in nfsd_proc_create() 286 attr->ia_valid |= ATTR_MODE; in nfsd_proc_create() 287 attr->ia_mode = mode; in nfsd_proc_create() 294 u32 size = attr->ia_size; in nfsd_proc_create() 299 } else if (type == S_IFCHR && !(attr->ia_valid & ATTR_SIZE)) { in nfsd_proc_create() [all …]
|
/linux-2.4.37.9/fs/fat/ |
D | dir.c | 211 if (de->attr != ATTR_EXT && (de->attr & ATTR_VOLUME)) in fat_search_long() 213 if (de->attr != ATTR_EXT && IS_FREE(de->name)) in fat_search_long() 215 if (de->attr == ATTR_EXT) { in fat_search_long() 261 if (ds->attr != ATTR_EXT) in fat_search_long() 270 if (de->attr == ATTR_EXT) in fat_search_long() 272 if (IS_FREE(de->name) || (de->attr & ATTR_VOLUME)) in fat_search_long() 402 if (de->attr != ATTR_EXT && (de->attr & ATTR_VOLUME)) in fat_readdirx() 404 if (de->attr != ATTR_EXT && IS_FREE(de->name)) in fat_readdirx() 407 if ((de->attr & ATTR_VOLUME) || IS_FREE(de->name)) in fat_readdirx() 411 if (isvfat && de->attr == ATTR_EXT) { in fat_readdirx() [all …]
|
D | inode.c | 913 if ((de->attr & ATTR_DIR) && !IS_FREE(de->name)) { in fat_fill_inode() 915 inode->i_mode = MSDOS_MKMODE(de->attr,S_IRWXUGO & in fat_fill_inode() 945 inode->i_mode = MSDOS_MKMODE(de->attr, in fat_fill_inode() 961 if(de->attr & ATTR_SYS) in fat_fill_inode() 964 MSDOS_I(inode)->i_attrs = de->attr & ATTR_UNUSED; in fat_fill_inode() 1008 raw_entry->attr = ATTR_DIR; in fat_write_inode() 1012 raw_entry->attr = ATTR_NONE; in fat_write_inode() 1015 raw_entry->attr |= MSDOS_MKATTR(inode->i_mode) | in fat_write_inode() 1035 int fat_notify_change(struct dentry * dentry, struct iattr * attr) in fat_notify_change() argument 1042 if (attr->ia_valid & ATTR_SIZE) { in fat_notify_change() [all …]
|
/linux-2.4.37.9/drivers/pcmcia/ |
D | cistpl.c | 112 int read_cis_mem(socket_info_t *s, int attr, u_int addr, in read_cis_mem() argument 118 DEBUG(3, "cs: read_cis_mem(%d, %#x, %u)\n", attr, addr, len); in read_cis_mem() 125 if (attr & IS_INDIRECT) { in read_cis_mem() 129 if (attr & IS_ATTR) { addr *= 2; flags = ICTRL0_AUTOINC; } in read_cis_mem() 142 if (attr) { mem->flags |= MAP_ATTRIB; inc++; addr *= 2; } in read_cis_mem() 161 void write_cis_mem(socket_info_t *s, int attr, u_int addr, in write_cis_mem() argument 167 DEBUG(3, "cs: write_cis_mem(%d, %#x, %u)\n", attr, addr, len); in write_cis_mem() 171 if (attr & IS_INDIRECT) { in write_cis_mem() 175 if (attr & IS_ATTR) { addr *= 2; flags = ICTRL0_AUTOINC; } in write_cis_mem() 188 if (attr & IS_ATTR) { mem->flags |= MAP_ATTRIB; inc++; addr *= 2; } in write_cis_mem() [all …]
|
/linux-2.4.37.9/drivers/video/ |
D | vgacon.c | 363 u8 attr = color; in vgacon_build_attr() local 367 attr = (attr & 0xf0) | c->vc_ulcolor; in vgacon_build_attr() 369 attr = (attr & 0xf0) | c->vc_halfcolor; in vgacon_build_attr() 372 attr = ((attr) & 0x88) | ((((attr) >> 4) | ((attr) << 4)) & 0x77); in vgacon_build_attr() 374 attr ^= 0x80; in vgacon_build_attr() 376 attr ^= 0x08; in vgacon_build_attr() 379 attr = (attr & 0xf8) | 0x01; in vgacon_build_attr() 381 attr = (attr & 0xf0) | 0x08; in vgacon_build_attr() 383 return attr; in vgacon_build_attr()
|
/linux-2.4.37.9/fs/nfs/ |
D | dir.c | 649 struct iattr attr; in nfs_create() local 657 attr.ia_mode = mode; in nfs_create() 658 attr.ia_valid = ATTR_MODE; in nfs_create() 668 &attr, 0, &fhandle, &fattr); in nfs_create() 681 struct iattr attr; in nfs_mknod() local 689 attr.ia_mode = mode; in nfs_mknod() 690 attr.ia_valid = ATTR_MODE; in nfs_mknod() 693 error = NFS_PROTO(dir)->mknod(dir, &dentry->d_name, &attr, rdev, in nfs_mknod() 707 struct iattr attr; in nfs_mkdir() local 715 attr.ia_valid = ATTR_MODE; in nfs_mkdir() [all …]
|
/linux-2.4.37.9/net/decnet/ |
D | dn_fib.c | 142 u16 dn_fib_get_attr16(struct rtattr *attr, int attrlen, int type) in dn_fib_get_attr16() argument 144 while(RTA_OK(attr,attrlen)) { in dn_fib_get_attr16() 145 if (attr->rta_type == type) in dn_fib_get_attr16() 146 return *(u16*)RTA_DATA(attr); in dn_fib_get_attr16() 147 attr = RTA_NEXT(attr, attrlen); in dn_fib_get_attr16() 424 struct rtattr *attr = rta[i-1]; in dn_fib_check_attr() local 425 if (attr) { in dn_fib_check_attr() 426 if (RTA_PAYLOAD(attr) < 4 && RTA_PAYLOAD(attr) != 2) in dn_fib_check_attr() 429 rta[i-1] = (struct rtattr *)RTA_DATA(attr); in dn_fib_check_attr()
|
/linux-2.4.37.9/include/linux/ |
D | sdla_fr.h | 71 unsigned char attr PACKED; /* FECN, BECN, DE and C/R bits */ 228 unsigned char attr PACKED; /* 05h: FECN/BECN/DE/CR */ 240 unsigned char attr PACKED; /* 09h: FECN/BECN/DE/CR */ 306 unsigned char attr PACKED; /* trace attributes */ 529 unsigned char attr PACKED; /* FECN, BECN, DE and C/R bits */ 614 unsigned char attr PACKED; 625 unsigned char attr PACKED;
|
D | coda.h | 435 struct coda_vattr attr; member 443 struct coda_vattr attr; member 485 struct coda_vattr attr; member 494 struct coda_vattr attr; member 539 struct coda_vattr attr; member 546 struct coda_vattr attr; member 566 struct coda_vattr attr; member
|