Lines Matching defs:byte
451 ntfs_log_error("Couldn't allocate memory for byte list.\n");
475 * @byte: Overwrite with this value
484 static s64 wipe_unused(ntfs_volume *vol, int byte, enum action act)
491 if (!vol || (byte < 0))
500 memset(buffer, byte, vol->cluster_size);
521 ntfs_log_quiet("wipe_unused 0x%02x, %lld bytes\n", byte, (long long)total);
530 * @byte: Overwrite with this value
543 static s64 wipe_unused_fast(ntfs_volume *vol, int byte, enum action act)
557 if (!vol || (byte < 0))
595 u32_bytes = (byte & 255)*0x01010101;
617 memset(buffer, byte, vol->cluster_size);
635 byte, (long long)(unused - total), (long long)total);
644 * @byte: Overwrite with this value
652 static s64 wipe_compressed_attribute(ntfs_volume *vol, int byte,
737 memset(buf, byte, size);
764 * @byte: Overwrite with this value
772 static s64 wipe_attribute(ntfs_volume *vol, int byte, enum action act,
796 memset(buf, byte, size);
817 int byte, enum action act)
843 wiped = wipe_compressed_attribute(vol, byte, act, na);
845 wiped = wipe_attribute(vol, byte, act, na);
859 * @byte: Overwrite with this value
869 static s64 wipe_tails(ntfs_volume *vol, int byte, enum action act)
878 if (!vol || (byte < 0))
921 a->name_length, byte, act);
938 ntfs_log_quiet("wipe_tails 0x%02x, %lld bytes\n", byte,
946 * @byte: Overwrite with this value
956 static s64 wipe_mft(ntfs_volume *vol, int byte, enum action act)
966 if (!vol || (byte < 0))
1004 memset(((u8*) rec) + size, byte, vol->mft_record_size - size);
1076 ntfs_log_quiet("wipe_mft 0x%02x, %lld bytes\n", byte, (long long)total);
1085 * @byte: Overwrite with this value
1095 static s64 wipe_index_allocation(ntfs_volume *vol, int byte, enum action act
1165 memset(buf + wipe_offset, byte, wipe_size);
1173 memset(buf, byte, wipe_size);
1232 * @byte: Overwrite with this value
1242 static s64 wipe_directory(ntfs_volume *vol, int byte, enum action act)
1251 if (!vol || (byte < 0))
1336 wiped = wipe_index_allocation(vol, byte, act,
1361 ntfs_log_quiet("wipe_directory 0x%02x, %lld bytes\n", byte,
1369 * @byte: Overwrite with this value
1379 static s64 wipe_logfile(ntfs_volume *vol, int byte, enum action act
1393 byte = 0xff;
1395 if (!vol || (byte < 0))
1398 //ntfs_log_quiet("wipe_logfile(not implemented) 0x%02x\n", byte);
1440 /* Fill the buffer with @byte's. */
1441 memset(buf, byte, NTFS_BUF_SIZE2);
1462 ntfs_log_quiet("wipe_logfile 0x%02x, %lld bytes\n", byte,
1480 * @byte: Overwrite with this value
1490 static s64 wipe_pagefile(ntfs_volume *vol, int byte, enum action act
1501 if (!vol || (byte < 0))
1504 //ntfs_log_quiet("wipe_pagefile(not implemented) 0x%02x\n", byte);
1532 memset(buf, byte, NTFS_BUF_SIZE2);
1553 ntfs_log_quiet("wipe_pagefile 0x%02x, %lld bytes\n", byte,
2057 /* parse each byte of the just-read part of the bitmap */
2060 /* parse each bit of the byte Bit 1 means 'in use'. */
2209 int byte;
2213 for (j = 0; byte = opts.bytes[j], byte >= 0; j++) {
2216 wiped = wipe_directory(vol, byte, act);
2224 wiped = wipe_tails(vol, byte, act);
2232 wiped = wipe_logfile(vol, byte, act);
2240 wiped = wipe_mft(vol, byte, act);
2248 wiped = wipe_pagefile(vol, byte, act);
2257 wiped = wipe_unused_fast(vol, byte,
2260 wiped = wipe_unused(vol, byte, act);