hdd_menu: use proper tune2fs call

call the my_system with the proper number of parameters instead
of relying on specifics of the getopt() used by tune2fs, now that
there is no limitation on the number of my_system arguments anymore


Origin commit data
------------------
Branch: ni/coolstream
Commit: 26a11a3458
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-03 (Sun, 03 Mar 2013)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2013-03-03 19:21:13 +01:00
parent 4324865fb6
commit 916e8e3fd0

View File

@@ -622,7 +622,7 @@ int CHDDFmtExec::exec(CMenuTarget* /*parent*/, const std::string& key)
waitfordev(src, 30); /* mdev can somtimes takes long to create devices, especially after mkfs? */ waitfordev(src, 30); /* mdev can somtimes takes long to create devices, especially after mkfs? */
printf("CHDDFmtExec: executing %s %s\n","/sbin/tune2fs -r 0 -c 0 -i 0", src); printf("CHDDFmtExec: executing %s %s\n","/sbin/tune2fs -r 0 -c 0 -i 0", src);
my_system(5, "/sbin/tune2fs", "-r 0", "-c 0", "-i 0", src); my_system(8, "/sbin/tune2fs", "-r", "0", "-c", "0", "-i", "0", src);
_remount: _remount:
unlink("/tmp/.nomdevmount"); unlink("/tmp/.nomdevmount");