get_operation_char(pdata.op),
pdata.bdev, pdata.result);
+ if (pdata.op == BLOCK_LUKS_CLOSE)
+ goto out;
+
if (pdata.op == BLOCK_DEV_MOUNT && pdata.result < 0) {
if (pdata.bdev->data->state == BLOCK_UNMOUNT) {
ret = change_mount_point(pdata.bdev, "");
ret = format_block_device(bdev, fdata->fs_type, fdata->option);
if (ret < 0)
- _E("fail to mount block device for %s", bdev->data->devnode);
+ _E("fail to format block device for %s", bdev->data->devnode);
out:
release_format_data(fdata);
pthread_mutex_unlock(&(th_manager[thread_id].mutex));
/* UNLOCK */
- if (operation == BLOCK_DEV_INSERT || operation == BLOCK_DEV_REMOVE) {
+ if (operation == BLOCK_DEV_INSERT || operation == BLOCK_DEV_REMOVE || operation == BLOCK_LUKS_CLOSE) {
if (pipe_trigger(operation, bdev, 0) < 0)
_E("fail to trigger pipe");
}
_E("fail to update block data for %s", bdev->data->devnode);
if (!strncmp(bdev->data->fs_type, LUKS_NAME, strlen(LUKS_NAME)))
_I("filesystem type is updated: crypto_LUKS");
+ if (bdev->data->fs_usage)
+ _I("fs_usage: %s", bdev->data->fs_usage);
}
}