Photos.app fails to repair its photoslibrary on external drive
I have my photoslibrary on an external (HFS+ formatted) drive.
Yesterday, I was preparing a movie with iMovie, using videos in Photos.photoslibrary. I quit iMovie and Photos, and need to unplug my external drive to get moving, but standard eject did not succeed (device busy). I really had to leave, and thus hat to force eject before unplugging.
Today, when opening my photoslibrary, Photos.app complains that the library is corrupted and needs repairing. I click "Repair", but 1 second later, a new dialog box appears warning that the library is incoherent and needs repairing.
I click the only possible button "Repair", and the dialog box reappears 1 second later.
I click the only possible button "Repair", and the dialog box reappears 1 second later.
I click the only possible button "Repair", and the dialog box reappears 1 second later.
...
My library is 190Gb fat, so it may take a while to repair. So I check the CPU and file activity of Photos.app and photoslibraryd: none (if I stop clicking in the Dialog-Repair loop).
Quitting Photos doesn't work.
Force-quitting Photos of course works, but (logically) does not help.
What can I do???
If it was photoslibraryd that was preventing disk ejection, and created the mess, how can I know how long I will have to wait for such a daemon to finish its work?