On your suggestion, I tried with "removable = y" option, on soft "eject" from host PC, the Linux file storage gadget is able to receive the SCSI command "SC_PREVENT_ALLOW_MEDIUM_REMOVAL". Based on this Linux file storage gadget can know the completion of the data transfer. But this requires a user input. I'm trying to automate this process. Thank you, Vinai. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html