Lines Matching defs:attr
130 ATTR_TYPES attr; /* Attribute type to display */
1369 ntfs_attr *attr;
1377 attr = ntfs_attr_open(inode, AT_DATA, NULL, 0);
1378 if (!attr) {
1383 total = attr->data_size;
1385 // hack: make sure attr will not be commited to disk if you use this.
1387 NAttrClearEncrypted(attr);
1389 old_data_size = attr->data_size;
1390 old_initialized_size = attr->initialized_size;
1391 attr->data_size = attr->initialized_size = attr->allocated_size;
1395 bytes_read = ntfs_attr_pread(attr, offset, 512, buffer);
1420 attr->data_size = old_data_size;
1421 attr->initialized_size = old_initialized_size;
1422 NAttrSetEncrypted(attr);
1423 ntfs_attr_close(attr);
1438 ntfs_attr *attr;
1448 attr = ntfs_attr_open(inode, AT_DATA, NULL, 0);
1449 if (!attr) {
1455 if (!(attr->data_flags & ATTR_IS_ENCRYPTED)) {
1461 if (ntfs_attr_truncate(attr, 0)) {
1509 written = ntfs_attr_pwrite(attr, offset, bufsize, buffer);
1518 ntfs_attr_truncate(attr, total);
1520 NAttrSetEncrypted(attr);
1521 ntfs_attr_close(attr);