diff --git a/ChangeLog b/ChangeLog index 1c5b44ba..e2584e94 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/ntfsprogs/cluster.c b/ntfsprogs/cluster.c index 96a4ad09..734bab8e 100644 --- a/ntfsprogs/cluster.c +++ b/ntfsprogs/cluster.c @@ -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;