ntfswipe.c: Adapt to the changed interface of ntfs_rl_pwrite in libntfs-3g.

ntfs_rl_pwrite has an additional parameter, ofs, in libntfs-3g. Setting ofs to 0 seems to imply the same behaviour as expected from the libntfs equivalent.
edge.strict_endians
Erik Larsson 2010-11-22 15:26:27 +01:00
parent 7478b2396c
commit 6f42c011be
1 changed files with 3 additions and 3 deletions

View File

@ -517,7 +517,7 @@ static s64 wipe_compressed_attribute(ntfs_volume *vol, int byte,
}
memset(buf, byte, size);
ret = ntfs_rl_pwrite(vol, na->rl, offset, size, buf);
ret = ntfs_rl_pwrite(vol, na->rl, 0, offset, size, buf);
free(buf);
if (ret != size) {
ntfs_log_verbose("Internal error\n");
@ -569,7 +569,7 @@ static s64 wipe_attribute(ntfs_volume *vol, int byte, enum action act,
}
memset(buf, byte, size);
wiped = ntfs_rl_pwrite(vol, na->rl, offset, size, buf);
wiped = ntfs_rl_pwrite(vol, na->rl, 0, offset, size, buf);
if (wiped == -1) {
ntfs_log_verbose("Internal error\n");
ntfs_log_error("Couldn't wipe tail");
@ -891,7 +891,7 @@ static s64 wipe_index_allocation(ntfs_volume *vol, int byte, enum action act
ntfs_log_verbose("x");
}
wiped = ntfs_rl_pwrite(vol, naa->rl, offset, indx_record_size, buf);
wiped = ntfs_rl_pwrite(vol, naa->rl, 0, offset, indx_record_size, buf);
if (wiped != indx_record_size) {
ntfs_log_verbose("ntfs_rl_pwrite failed\n");
ntfs_log_error("Couldn't wipe tail of INDX record");