Displaying 5 results from an estimated 5 matches for "dc99f992".
2020 Aug 07
0
[nbdkit PATCH 1/4] file: Forbid non-regular, non-block file names
...problems down the road when trying to
use .pread; let's move the failure sooner to .open.
Signed-off-by: Eric Blake <eblake@redhat.com>
---
plugins/file/file.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/plugins/file/file.c b/plugins/file/file.c
index dc99f992..e049864a 100644
--- a/plugins/file/file.c
+++ b/plugins/file/file.c
@@ -189,7 +189,16 @@ file_open (int readonly)
return NULL;
}
- h->is_block_device = S_ISBLK (statbuf.st_mode);
+ if (S_ISBLK (statbuf.st_mode))
+ h->is_block_device = true;
+ else if (S_ISREG (statbuf.st_mode)...
2020 Aug 06
2
[PATCH nbdkit] Experiment with parallel python plugin
...ns/file/file.c | 4 ++--
plugins/python/examples/file.py | 5 ++++-
server/plugins.c | 20 ++++++++++++++------
server/threadlocal.c | 7 +++++--
4 files changed, 25 insertions(+), 11 deletions(-)
diff --git a/plugins/file/file.c b/plugins/file/file.c
index dc99f992..27316b9f 100644
--- a/plugins/file/file.c
+++ b/plugins/file/file.c
@@ -170,7 +170,7 @@ file_open (int readonly)
return NULL;
}
- flags = O_CLOEXEC|O_NOCTTY;
+ flags = O_CLOEXEC|O_NOCTTY|O_DIRECT;
if (readonly)
flags |= O_RDONLY;
else
@@ -551,7 +551,7 @@ file_can_extents (vo...
2020 Aug 06
0
[PATCH nbdkit] Experiment with parallel python plugin
...ns/file/file.c | 4 ++--
plugins/python/examples/file.py | 5 ++++-
server/plugins.c | 20 ++++++++++++++------
server/threadlocal.c | 7 +++++--
4 files changed, 25 insertions(+), 11 deletions(-)
diff --git a/plugins/file/file.c b/plugins/file/file.c
index dc99f992..27316b9f 100644
--- a/plugins/file/file.c
+++ b/plugins/file/file.c
@@ -170,7 +170,7 @@ file_open (int readonly)
return NULL;
}
- flags = O_CLOEXEC|O_NOCTTY;
+ flags = O_CLOEXEC|O_NOCTTY|O_DIRECT;
if (readonly)
flags |= O_RDONLY;
else
@@ -551,7 +551,7 @@ file_can_extents (vo...
2020 Aug 06
0
Re: [PATCH nbdkit] Experiment with parallel python plugin
...-
> plugins/python/examples/file.py | 5 ++++-
> server/plugins.c | 20 ++++++++++++++------
> server/threadlocal.c | 7 +++++--
> 4 files changed, 25 insertions(+), 11 deletions(-)
>
> diff --git a/plugins/file/file.c b/plugins/file/file.c
> index dc99f992..27316b9f 100644
> --- a/plugins/file/file.c
> +++ b/plugins/file/file.c
> @@ -170,7 +170,7 @@ file_open (int readonly)
> return NULL;
> }
>
> - flags = O_CLOEXEC|O_NOCTTY;
> + flags = O_CLOEXEC|O_NOCTTY|O_DIRECT;
> if (readonly)
> flags |= O_RDONLY...
2020 Aug 07
8
[nbdkit PATCH 0/4] More .list_exports uses
Here's changes to the file plugin (which I'm happy with) and a new
exportname filter (which is still at RFC stage; I need to finish
implementing strict mode in .open, and add tests).
I also discovered that we really want .list_exports and .open to know
when they are used on plaintext vs. tls clients for --tls=on, and we
may want to split out a new .default_export callback rather than