Re: [PATCH 05/24] Introduce locking functions for block device setup on NetBSD

2021-01-20 Thread Ian Jackson
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

Re: [PATCH 05/24] Introduce locking functions for block device setup on NetBSD

2021-01-20 Thread Ian Jackson
Manuel Bouyer writes ("Re: [PATCH 05/24] Introduce locking functions for block device setup on NetBSD"): > On Wed, Jan 20, 2021 at 04:12:29PM +, Ian Jackson wrote: > > I think NetBSD's stat(1) also takes different argumnts to specify the > > format. NetBSD uses

Re: [PATCH 05/24] Introduce locking functions for block device setup on NetBSD

2021-01-20 Thread Manuel Bouyer
On Wed, Jan 20, 2021 at 04:12:29PM +, Ian Jackson wrote: > Manuel Bouyer writes ("Re: [PATCH 05/24] Introduce locking functions for > block device setup on NetBSD"): > > Yes, at last the stat call will need to be patched. > > But it seems to rely on a linux-spec

Re: [PATCH 05/24] Introduce locking functions for block device setup on NetBSD

2021-01-20 Thread Ian Jackson
Manuel Bouyer writes ("Re: [PATCH 05/24] Introduce locking functions for block device setup on NetBSD"): > Yes, at last the stat call will need to be patched. > But it seems to rely on a linux-specific behavoir, which is that > /dev/stdin points to the real file on redirec

Re: [PATCH 05/24] Introduce locking functions for block device setup on NetBSD

2021-01-20 Thread Manuel Bouyer
On Wed, Jan 20, 2021 at 03:13:22PM +, Ian Jackson wrote: > Manuel Bouyer writes ("Re: [PATCH 05/24] Introduce locking functions for > block device setup on NetBSD"): > > On Tue, Dec 29, 2020 at 12:29:09PM +0100, Roger Pau Monné wrote: > > > I think you want t

Re: [PATCH 05/24] Introduce locking functions for block device setup on NetBSD

2021-01-20 Thread Ian Jackson
Manuel Bouyer writes ("Re: [PATCH 05/24] Introduce locking functions for block device setup on NetBSD"): > On Tue, Dec 29, 2020 at 12:29:09PM +0100, Roger Pau Monné wrote: > > I think you want tot CC the tools dev on this one, specially Ian who > > knows how the Linux o

Re: [PATCH 05/24] Introduce locking functions for block device setup on NetBSD

2021-01-04 Thread Manuel Bouyer
On Tue, Dec 29, 2020 at 12:29:09PM +0100, Roger Pau Monné wrote: > I think you want tot CC the tools dev on this one, specially Ian who > knows how the Linux one is implemented and can likely give valuable > input. > > On Mon, Dec 14, 2020 at 05:36:04PM +0100, Manuel Bouyer wrote: > > --- > > too

Re: [PATCH 05/24] Introduce locking functions for block device setup on NetBSD

2020-12-29 Thread Roger Pau Monné
I think you want tot CC the tools dev on this one, specially Ian who knows how the Linux one is implemented and can likely give valuable input. On Mon, Dec 14, 2020 at 05:36:04PM +0100, Manuel Bouyer wrote: > --- > tools/hotplug/NetBSD/Makefile | 1 + > tools/hotplug/NetBSD/block | 5 ++-

[PATCH 05/24] Introduce locking functions for block device setup on NetBSD

2020-12-14 Thread Manuel Bouyer
--- tools/hotplug/NetBSD/Makefile | 1 + tools/hotplug/NetBSD/block | 5 ++- tools/hotplug/NetBSD/locking.sh | 72 + 3 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 tools/hotplug/NetBSD/locking.sh diff --git a/tools/hotplug/NetBSD/Make