linsomniac / drbdlinks

A helper for DRBD which makes/reverts links into DRBD volumes.
GNU General Public License v2.0
8 stars 5 forks source link

Troubles with initialize_shared_storage and trailing / in link #4

Closed ymartin59 closed 6 years ago

ymartin59 commented 7 years ago

It took me a while to figure out that the trailing / at the end of my directive

link('/var/lib/postgresql/')

was the reason why initialize_shared_storage failed to detect lacking target directories and just aborted its copy tentative.

It would be an interesting improvement to discard trailing slash if present in link declaration or else to abort early with dedicated error message.

linsomniac commented 6 years ago

I believe I have this fixed.