summaryrefslogtreecommitdiffstats
path: root/src/rfs_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-19 16:13:20 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-19 16:13:20 +0200
commit4699591268012128de457f172963a51ae1c681d6 (patch)
tree6553606fd73ff8b11ea2e17e7d4296548db418a1 /src/rfs_dir.c
parentea952b0cc9d7a732916fc37db13383a0ae31faf7 (diff)
TestDisk, Advanced, List will now always display files or a warning message
Diffstat (limited to 'src/rfs_dir.c')
-rw-r--r--src/rfs_dir.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rfs_dir.c b/src/rfs_dir.c
index e845717..5207437 100644
--- a/src/rfs_dir.c
+++ b/src/rfs_dir.c
@@ -545,7 +545,7 @@ static int reiser_copy(disk_t *disk_car, const partition_t *partition, dir_data_
}
#endif
-int dir_partition_reiser_init(disk_t *disk_car, const partition_t *partition, dir_data_t *dir_data, const int verbose)
+dir_partition_t dir_partition_reiser_init(disk_t *disk_car, const partition_t *partition, dir_data_t *dir_data, const int verbose)
{
#ifdef HAVE_LIBREISERFS
dal_t *dal;
@@ -564,7 +564,7 @@ int dir_partition_reiser_init(disk_t *disk_car, const partition_t *partition, di
{
log_error("Couldn't open device\n");
free(my_data);
- return -1;
+ return DIR_PART_EIO;
}
/* log_debug("file_open ok\n"); */
@@ -577,7 +577,7 @@ int dir_partition_reiser_init(disk_t *disk_car, const partition_t *partition, di
log_error("Couldn't open reiser filesystem %s\n",dal_error(dal));
/* file_close call free(my_data) */
file_close(dal);
- return -1;
+ return DIR_PART_EIO;
}
/* log_debug("reiserfs_fs_open_fast ok\n"); */
{
@@ -597,9 +597,9 @@ int dir_partition_reiser_init(disk_t *disk_car, const partition_t *partition, di
dir_data->local_dir=NULL;
dir_data->private_dir_data=ls;
}
- return 0;
+ return DIR_PART_OK;
#else
- return -2;
+ return DIR_PART_ENOSYS;
#endif
}