hdd_menu: only offer filesystems with kernel support

This commit is contained in:
Stefan Seyfried
2015-02-08 12:27:03 +01:00
committed by Jacek Jendrzej
parent 42c2323135
commit 141872565e
2 changed files with 30 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ class CHDDMenuHandler : public CMenuTarget
bool mounted;
};
std::vector<hdd_s> hdd_list;
std::set<std::string> kernel_fs_list;
struct cmp_hdd_by_name: public binary_function <const struct hdd_s, const struct hdd_s, bool>
{
bool operator() (const struct hdd_s c1, const struct hdd_s c2)
@@ -84,6 +85,7 @@ class CHDDMenuHandler : public CMenuTarget
bool add_dev(std::string dev, std::string part);
bool waitfordev(std::string dev, int maxwait);
void check_dev_tools();
void check_kernel_fs();
devtool_s * get_dev_tool(std::string fmt);
int showDeviceMenu(std::string dev);