From 01622020fcdcaa4e1ea353682024dc5fdcc300fd Mon Sep 17 00:00:00 2001 From: szaka Date: Mon, 1 Jan 2007 19:32:07 +0000 Subject: [PATCH] print some help if device is fakeraid --- src/utils.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/utils.c b/src/utils.c index 67cd9294..d6414f78 100644 --- a/src/utils.c +++ b/src/utils.c @@ -112,6 +112,11 @@ static const char *opened_volume_msg = "The volume may be already mounted, or another software may use it which\n" "could be identified for example by the help of the 'fuser' command.\n"; +static const char *fakeraid_msg = +"You seem to have a SoftRAID/FakeRAID hardware and must use an activated,\n" +"different device under /dev/mapper, (e.g. /dev/mapper/nvidia_eahaabcc1)\n" +"to mount NTFS. Please see the 'dmraid' documentation for help.\n"; + /** * utils_set_locale */ @@ -149,6 +154,8 @@ ntfs_volume *utils_mount_volume(const char *volume, unsigned long flags, ntfs_log_error("%s", unclean_journal_msg); else if (errno == EBUSY) ntfs_log_error("%s", opened_volume_msg); + else if (errno == ENODEV) + ntfs_log_error("%s", fakeraid_msg); return NULL; }