Changes by: szaka
Update of /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2428/ntfsprogs
Modified Files:
cluster.c
Log Message:
identify files even if their clusters aren't set in $Bitmap (useful to
find potentially corrupted files)
Index: cluster.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs/cluster.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -r1.12 -r1.13
--- cluster.c 29 Oct 2005 00:08:43 -0000 1.12
+++ cluster.c 13 Mar 2006 20:25:46 -0000 1.13
@@ -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
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;
|