identify files even if their clusters aren't set in $Bitmap (useful to

find potentially corrupted files)
edge.strict_endians
szaka 2006-03-13 20:25:46 +00:00
parent 51085b8a6a
commit 033eaf429f
2 changed files with 2 additions and 18 deletions

View File

@ -3,6 +3,8 @@ xx/xx/2006 - 1.13.1-WIP
- Fix bug in ntfs_attr_pwrite() when we sometimes lose current run in
the runlist. (Yura)
- Fix build with --disable-gnome-vfs --enable-fuse-module. (Gentoo)
- ntfscluster: identify files even if their clusters aren't set
in $Bitmap (useful to find potentially corrupted files). (Szaka)
27/02/2006 - 1.13.0 - Lots and lots and lots of fixes and enhancements.

View File

@ -42,9 +42,7 @@
*/
int cluster_find(ntfs_volume *vol, LCN c_begin, LCN c_end, cluster_cb *cb, void *data)
{
u64 i;
int j;
int in_use = 0;
int result = -1;
struct mft_search_ctx *m_ctx = NULL;
ntfs_attr_search_ctx *a_ctx = NULL;
@ -54,22 +52,6 @@ int cluster_find(ntfs_volume *vol, LCN c_begin, LCN c_end, cluster_cb *cb, void
if (!vol || !cb)
return -1;
// Quick check that at least one cluster is in use
for (i = c_begin; (LCN)i < c_end; i++) {
if (utils_cluster_in_use(vol, i) == 1) {
in_use = 1;
break;
}
}
if (!in_use) {
if (c_begin == c_end)
ntfs_log_verbose("cluster isn't in use\n");
else
ntfs_log_verbose("clusters aren't in use\n");
return 0;
}
m_ctx = mft_get_search_ctx(vol);
m_ctx->flags_search = FEMR_IN_USE | FEMR_BASE_RECORD;