- hdd_menu: create destination before mount

This commit is contained in:
svenhoefer
2013-11-22 12:44:05 +01:00
parent 57267a28aa
commit 97cb0248f8

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: