search for: diropen

Displaying 6 results from an estimated 6 matches for "diropen".

2020 Aug 15
2
Re: [PATCH nbdkit] New ondemand plugin.
...t;+++ b/plugins/ondemand/ondemand.c > > >+/* Because we rewind the exportsdir handle, we need a lock to protect > >+ * list_exports from being called in parallel. > >+ */ > >+static pthread_mutex_t exports_lock = PTHREAD_MUTEX_INITIALIZER; > > An alternative is to diropen() each time .list_exports gets called. > Either way should work, though. diropen == opendir? > I still have some pending patches to improve .list_exports (split > out a .default_export function, add an is_tls parameter), so there > may be some churn in this area (for that matter, I ha...
2020 Aug 15
0
Re: [PATCH nbdkit] New ondemand plugin.
...W.M. Jones wrote: >>> +/* Because we rewind the exportsdir handle, we need a lock to protect >>> + * list_exports from being called in parallel. >>> + */ >>> +static pthread_mutex_t exports_lock = PTHREAD_MUTEX_INITIALIZER; >> >> An alternative is to diropen() each time .list_exports gets called. >> Either way should work, though. > > diropen == opendir? Oops, yeah. > >> I still have some pending patches to improve .list_exports (split >> out a .default_export function, add an is_tls parameter), so there >> may be s...
2020 Aug 15
0
Re: [PATCH nbdkit] New ondemand plugin.
...ite need for this warning. > +++ b/plugins/ondemand/ondemand.c > +/* Because we rewind the exportsdir handle, we need a lock to protect > + * list_exports from being called in parallel. > + */ > +static pthread_mutex_t exports_lock = PTHREAD_MUTEX_INITIALIZER; An alternative is to diropen() each time .list_exports gets called. Either way should work, though. I still have some pending patches to improve .list_exports (split out a .default_export function, add an is_tls parameter), so there may be some churn in this area (for that matter, I have not yet pushed my patches for .lis...
2020 Aug 07
1
Re: [nbdkit PATCH 2/4] file: Add .list_exports support
On Thu, Aug 06, 2020 at 09:23:46PM -0500, Eric Blake wrote: > + if (!filename == !directory) { A bit tricksy. In plugins/nbd/nbd.c I used: int c = !!sockname + !!hostname + !!uri + (command.size > 0) + (socket_fd >= 0) + !!raw_cid; /* Check the user passed exactly one connection parameter. */ if (c > 1) { nbdkit_error ("cannot mix Unix ‘socket’, TCP
2020 Aug 14
2
[PATCH nbdkit] New ondemand plugin.
This creates filesystems on demand. A client simply connects with a desired export name and a new export is created. The export is persistent (until deleted by the server admin), and clients may disconnect and reconnect. In some respects this is similar to the nbdkit-tmpdisk-plugin, or nbdkit-file-plugin with the dir= option. --- plugins/ondemand/nbdkit-ondemand-plugin.pod | 190 ++++++
2017 Sep 22
3
gtk3 update causing havoc
On my lab systems, the automatic updates were failing because of the problems with ipod libraries from EPEL being in the way. It turns out that was a good thing, because when I "fixed" it, a massive set of packages was updated, including the new gtk3. These packages are the ones causing problems, I think. gtk3-3.22.10-4.el7.x86_64 gtk3-devel-3.22.10-4.el7.x86_64 In the release notes,