Lines Matching refs:na

81 	ntfs_attr *na;
613 ntfs_attr *na;
617 na = alctx->na;
619 na->data_size = alctx->new_size;
620 na->initialized_size = 0;
621 na->allocated_size = alctx->wanted_clusters
626 attr->data_size = cpu_to_sle64(na->data_size);
627 attr->initialized_size = cpu_to_sle64(na->initialized_size);
628 attr->allocated_size = cpu_to_sle64(na->allocated_size);
629 if (na->data_flags & ATTR_IS_SPARSE)
630 attr->compressed_size = cpu_to_sle64(na->compressed_size);
632 if ((opts.attribute == AT_DATA) && !na->name_len) {
633 ni = na->ni;
634 ni->data_size = na->data_size;
635 if (na->data_flags & ATTR_IS_SPARSE) {
636 ni->allocated_size = na->compressed_size;
639 ni->allocated_size = na->allocated_size;
653 ntfs_attr *na;
659 na = alctx->na;
660 if (na->rl)
661 free(na->rl);
662 na->rl = alctx->rl;
670 na->allocated_size = alctx->wanted_clusters
672 NAttrSetNonResident(na);
673 NAttrSetFullyMapped(na);
674 if (err || ntfs_attr_update_mapping_pairs(na, 0)) {
677 ctx = ntfs_attr_get_search_ctx(alctx->na->ni, NULL);
679 if (ntfs_attr_lookup(opts.attribute, na->name,
680 na->name_len,
762 static int preallocate(ntfs_attr *na, s64 new_size)
769 vol = na->ni->vol;
774 alctx->na = na;
842 ntfs_attr *na;
1059 na = ntfs_attr_open(out, opts.attribute, attr_name, attr_name_len);
1060 if (!na) {
1071 na = ntfs_attr_open(out, opts.attribute, attr_name,
1073 if (!na) {
1080 ntfs_log_verbose("Old file size: %lld\n", (long long)na->data_size);
1081 if (opts.minfragments && NAttrCompressed(na)) {
1086 if (na->data_size && opts.minfragments) {
1087 if (ntfs_attr_truncate(na, 0)) {
1093 if (na->data_size != new_size) {
1100 if (ntfs_attr_truncate(na, new_size)) {
1105 if (NAttrNonResident(na)
1106 && preallocate(na, new_size)) {
1112 if (ntfs_attr_truncate_solid(na, new_size)) {
1139 bw = ntfs_attr_pwrite(na, offset, br, buf);
1146 if ((na->data_flags & ATTR_COMPRESSION_MASK)
1147 && ntfs_attr_pclose(na))
1153 ntfs_attr_close(na);