• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/ntfs-3g-2009.3.8/libntfs-3g/

Lines Matching refs:vol

720  * @vol:	ntfs volume on which the attribute resides
745 runlist_element *ntfs_mapping_pairs_decompress_i(const ntfs_volume *vol,
870 if (vol->major_ver < 3) {
909 vol->cluster_size - 1) >>
910 vol->cluster_size_bits) - 1;
969 runlist_element *ntfs_mapping_pairs_decompress(const ntfs_volume *vol,
975 rle = ntfs_mapping_pairs_decompress_i(vol, attr, old_rl);
1036 * @vol: ntfs volume to read from
1042 * This function will read @count bytes from the volume @vol to the data buffer
1058 s64 ntfs_rl_pread(const ntfs_volume *vol, const runlist_element *rl,
1064 if (!vol || !rl || pos < 0 || count < 0) {
1066 ntfs_log_perror("Failed to read runlist [vol: %p rl: %p "
1067 "pos: %lld count: %lld]", vol, rl,
1075 vol->cluster_size_bits) <= pos); rl++)
1076 ofs += (rl->length << vol->cluster_size_bits);
1087 vol->cluster_size_bits) - ofs);
1096 to_read = min(count, (rl->length << vol->cluster_size_bits) -
1099 bytes_read = ntfs_pread(vol->dev, (rl->lcn <<
1100 vol->cluster_size_bits) + ofs, to_read, b);
1126 * @vol: ntfs volume to write to
1132 * This function will write @count bytes from data buffer @b to the volume @vol
1146 s64 ntfs_rl_pwrite(const ntfs_volume *vol, const runlist_element *rl,
1152 if (!vol || !rl || pos < 0 || count < 0) {
1154 ntfs_log_perror("Failed to write runlist [vol: %p rl: %p "
1155 "pos: %lld count: %lld]", vol, rl,
1163 vol->cluster_size_bits) <= pos); rl++)
1164 ofs += (rl->length << vol->cluster_size_bits);
1176 vol->cluster_size_bits) - ofs);
1184 to_write = min(count, (rl->length << vol->cluster_size_bits) -
1187 if (!NVolReadOnly(vol))
1188 written = ntfs_pwrite(vol->dev, (rl->lcn <<
1189 vol->cluster_size_bits) + ofs,
1251 * @vol: ntfs volume (needed for the ntfs version)
1269 int ntfs_get_size_for_mapping_pairs(const ntfs_volume *vol,
1318 if (rl->lcn >= 0 || vol->major_ver < 3) {
1341 if (rl->lcn >= 0 || vol->major_ver < 3) {
1413 * @vol: ntfs volume (needed for the ntfs version)
1442 int ntfs_mapping_pairs_build(const ntfs_volume *vol, u8 *dst,
1495 if (rl->lcn >= 0 || vol->major_ver < 3) {
1534 if (rl->lcn >= 0 || vol->major_ver < 3) {
1688 * @vol: ntfs volume (need for cluster size)
1693 s64 ntfs_rl_get_compressed_size(ntfs_volume *vol, runlist *rl)
1714 return ret << vol->cluster_size_bits;
2037 * @vol:
2046 static void test_rl_frag_combine(ntfs_volume *vol, ATTR_RECORD *attr1, ATTR_RECORD *attr2, ATTR_RECORD *attr3)
2052 run1 = ntfs_mapping_pairs_decompress(vol, attr1, NULL);
2056 run2 = ntfs_mapping_pairs_decompress(vol, attr2, NULL);
2062 run3 = ntfs_mapping_pairs_decompress(vol, attr3, NULL);
2081 ntfs_volume vol;
2089 vol.sb = NULL;
2090 vol.sector_size_bits = 9;
2091 vol.cluster_size = 2048;
2092 vol.cluster_size_bits = 11;
2093 vol.major_ver = 3;
2102 if (strcmp(test, "123") == 0) test_rl_frag_combine(&vol, attr1, attr2, attr3);
2103 else if (strcmp(test, "132") == 0) test_rl_frag_combine(&vol, attr1, attr3, attr2);
2104 else if (strcmp(test, "213") == 0) test_rl_frag_combine(&vol, attr2, attr1, attr3);
2105 else if (strcmp(test, "231") == 0) test_rl_frag_combine(&vol, attr2, attr3, attr1);
2106 else if (strcmp(test, "312") == 0) test_rl_frag_combine(&vol, attr3, attr1, attr2);
2107 else if (strcmp(test, "321") == 0) test_rl_frag_combine(&vol, attr3, attr2, attr1);