search for: file_list_export

Displaying 2 results from an estimated 2 matches for "file_list_export".

Did you mean: file_list_exports
2020 Aug 07
0
[nbdkit PATCH 2/4] file: Add .list_exports support
...ot;file=<FILENAME> The filename to serve." \ + "directory=<DIRNAME> A directory containing files to serve." \ /* Print some extra information about how the plugin was compiled. */ static void @@ -145,8 +165,47 @@ file_dump_plugin (void) #endif } +static int file_list_exports (int readonly, int default_only, + struct nbdkit_exports *exports) +{ + struct dirent *entry; + struct stat sb; + int fd; + + if (!directory) + return nbdkit_add_export (exports, "", NULL); + + ACQUIRE_LOCK_FOR_CURRENT_SCOPE (&lock); + rewinddir...
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