Manuel Bouyer writes ("Re: [PATCH 05/24] Introduce locking functions for block device setup on NetBSD"): > Right, thanks. Then it would need to be done with 2 different calls > but I don't think that's a problem (even with the linux version it would > not be atomic anyway).
Sorry, I forgot to reply to this. Yes, it would need to invocations of stat(1). You are correct that the Linux version is not atomic in that sense. Ian.