device_is_mounted
if (!device_is_mounted (device, &mount_dir)) {
if (device_is_mounted (device, NULL)) {