char* strparams[7];
parameters.get("(issssssisibii)",
- &intparams[0], // block type: 0 - scsi, 1 : mmc, 2 : mapper
+ &intparams[0], // block type: 0 - scsi, 1 : mmc
&strparams[0], // devnode
&strparams[1], // syspath
&strparams[2], // usage
&intparams[4], // flags: 1 - unmounted 2 - broken filesystem 4 - no filesystem 8 - not supported 16 - readonly
&intparams[5]); // strage id
- // TODO: this implementation probably would do better if it was on par with
- // ExtensionEncryption in terms of how it detects and reacts to card events
- if (intparams[0] != 1 || (std::string(strparams[3]) != "vfat" &&
- std::string(strparams[3]) != "ext4")) {
- DEBUG(SINK, "Storaged says it's not a regular SD card. Ignoring.");
- return;
- }
-
if(intparams[2] == 0) {
INFO(SINK, "Unmounted");
} else {