← Back to team overview

cloud-init-dev team mailing list archive

Re: [Merge] ~raharper/cloud-init:ds-ovf-use-util-find-devs-with into cloud-init:master

 

> As it turns out, two parallel instances of /bin/mount pointing 
> to the same device will cause one to fail; it appears that there
> is some sort of locking/ref-counting during a mount operation
> that results in one of the two mount processes getting EBUSY as a result.

In particular, when we open the block device, the kernel sets
FMODE_EXCL flag which prevents additional opens of the same device
where the filesystem is of a different type.

This is expected behavior by the kernel (and our setup).
-- 
https://code.launchpad.net/~raharper/cloud-init/+git/cloud-init/+merge/330995
Your team cloud-init commiters is requested to review the proposed merge of ~raharper/cloud-init:ds-ovf-use-util-find-devs-with into cloud-init:master.


References