openbmc / linux

OpenBMC Linux kernel source tree
Other
49 stars 131 forks source link

Device or resource busy issue with gadget driver. #207

Closed edineshkumar closed 2 years ago

edineshkumar commented 3 years ago

If redirected media instance was mounted in host machine, following shell command is failing by sh: write error: Device or resource busy.

cd /{gadget_path} ; echo > functions/mass_storage.usb0/lun.0/file

If the media instance was not mounted in host machine, then there is nothing issue. echo command is succeeded.

My need is, echo command should success in both (with/without mount) cases.

Anyone can suggest me to achieve this?