[PATCH 2/2] xen-blkback: Inform userspace that device has been opened

2023-06-01 Thread Demi Marie Obenour
Set "opened" to "0" before the hotplug script is called. Once the device node has been opened, set "opened" to "1". "opened" is used exclusively by userspace. It serves two purposes: 1. It tells userspace that the diskseq Xenstore entry is supported. 2. It tells userspace that it can wait for

Re: [PATCH 2/2] xen-blkback: Inform userspace that device has been opened

2023-06-07 Thread Christoph Hellwig
> --- a/drivers/block/xen-blkback/xenbus.c > +++ b/drivers/block/xen-blkback/xenbus.c > @@ -3,6 +3,20 @@ > Copyright (C) 2005 Rusty Russell > Copyright (C) 2005 XenSource Ltd > > +In addition to the Xenstore nodes required by the Xen block device > +specification, this implementation o

Re: [PATCH 2/2] xen-blkback: Inform userspace that device has been opened

2023-06-07 Thread Demi Marie Obenour
On Wed, Jun 07, 2023 at 12:46:16AM -0700, Christoph Hellwig wrote: > > --- a/drivers/block/xen-blkback/xenbus.c > > +++ b/drivers/block/xen-blkback/xenbus.c > > @@ -3,6 +3,20 @@ > > Copyright (C) 2005 Rusty Russell > > Copyright (C) 2005 XenSource Ltd > > > > +In addition to the Xensto