Lines Matching defs:na1
536 static void cmp_index_allocation(ntfs_attr *na1, ntfs_attr *na2)
542 if (setup_cmp_ia(na1, &cia1))
552 if (cmp_buffer(cia1.bitmap, cia2.bitmap, cia1.bm_size, na1))
555 if (cmp_buffer((u8 *)cia1.ia, (u8 *)cia2.ia, 0x18, na1))
561 while ((u8 *)cia1.tmp_ia < (u8 *)cia1.ia + na1->data_size) {
568 print_differ(na1);
578 index.index_length), na1))
599 static void cmp_attribute_data(ntfs_attr *na1, ntfs_attr *na2)
606 for (pos = 0; pos <= na1->data_size; pos += count1) {
608 count1 = ntfs_attr_pread(na1, pos, NTFS_BUF_SIZE, buf1);
612 print_na(na1);
614 na1->data_size, na2->data_size);
622 print_na(na1);
623 printf("len = %lld, pos = %lld\n", na1->data_size, pos);
629 if (pos + count1 == na1->data_size)
633 print_na(na1);
634 printf("%lld != %lld\n", pos + count1, na1->data_size);
638 if (cmp_buffer(buf1, buf2, count1, na1))
643 print_na(na1);
645 na1->data_size, pos, count1);
671 ntfs_attr *na1, *na2;
678 na1 = ntfs_attr_open(base_inode(ctx1), a1->type, GET_ATTR_NAME(a1));
681 if ((!na1 && na2) || (na1 && !na2)) {
683 printf("open: %s != %s\n", pret2str(na1), pret2str(na2));
687 if (na1 == NULL)
690 if (na1->data_size != na2->data_size) {
691 print_na(na1);
692 printf("length: %lld != %lld\n", na1->data_size, na2->data_size);
704 if (na1->type == AT_INDEX_ALLOCATION)
705 cmp_index_allocation(na1, na2);
707 cmp_attribute_data(na1, na2);
710 ntfs_attr_close(na1);