hdd_menu: create destination before mount

Origin commit data
------------------
Commit: 97cb0248f8
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-11-22 (Fri, 22 Nov 2013)

Origin message was:
------------------
- hdd_menu: create destination before mount
This commit is contained in:
vanhofen
2013-11-22 12:44:05 +01:00
parent ba6a667595
commit bf0b8f31ab

View File

@@ -478,9 +478,11 @@ _remount:
switch(g_settings.hdd_fs) {
case 0:
safe_mkdir(dst);
res = mount(src, dst, "ext3", 0, NULL);
break;
case 1:
safe_mkdir(dst);
res = mount(src, dst, "reiserfs", 0, NULL);
break;
default:
@@ -602,9 +604,11 @@ printf("CHDDChkExec: key %s\n", key.c_str());
ret1:
switch(g_settings.hdd_fs) {
case 0:
safe_mkdir(dst);
res = mount(src, dst, "ext3", 0, NULL);
break;
case 1:
safe_mkdir(dst);
res = mount(src, dst, "reiserfs", 0, NULL);
break;
default: