LinearTapeFileSystem / ltfs

Reference implementation of the LTFS format Spec for stand alone tape drive
BSD 3-Clause "New" or "Revised" License
255 stars 76 forks source link

When is unmount completed? #400

Closed aries-sd closed 1 year ago

aries-sd commented 1 year ago

The readme has the following to say about the 'unmount' functionality:

" One thing you need to pay attention to here is, that the unmount command continues to work in the background after it returns. It just initiates a trigger to notify the the ltfs command of the unmount request. Actual unmount is completed when the ltfs command is finished. "

This raises question -- how does one know when the unmount command, which is continuing to work in the background, actually completes?

I'm using LTFS with an autoloader and scripts, I need to know how to detect the unmount completion so that I may command the robotics to eject and move the tape....

piste-jp commented 1 year ago

You need to detect the completion of the ltfs process. I believe you can see the script in the repository.

https://github.com/LinearTapeFileSystem/ltfs/blob/master/init.d/ltfs

aries-sd commented 1 year ago

Ah, monitor for exit of the actual process. Perfect. Thank you.