single file.
I need to think about that. In any case, that's not adding much
complexity (probably simplifying things in some areas, in fact).
--
Michael Walker (http://www.barrucadu.co.uk)
Arch Hurd Developer; GNU Webmaster; FSF member #8385
http://www.archhurd.org http://www.gnu.org http://www.fsf.org
ction when there is one
* Update the presented directory hierarchy
* xmlfs tree representation to libxml2 representation
* Perform an XSLT transformation
* XML to libnetfs read-only translator
I think that this is perfectly achievable in the time available.
--
Michael Walker (htt
e_t) open (xmlfilename, O_READ);
>> +
>> + err = xmlfs_create (xmlfile, xmlfs);
>
> I believe this will leak a lot of stuff on each file change?
I'll definitely need to have a look at that. Almost certainly
(developing seems so much harder with no valgrind to run after every
ch
; netfs_root_node->nn_stat = underlying_stat;
>> netfs_root_node->nn_stat.st_mode =
>> - S_IFDIR | (underlying_stat.st_mode & ~S_IFMT & ~S_ITRANS);
>> + S_IFDIR | (underlying_stat.st_mode & (unsigned int) ~S_IFMT &
>> (unsigned int) ~S_ITRANS);
>
> What's the warning here?
Implicit casting to unsigned int.
Thanks for the comments.
--
Michael Walker (http://www.barrucadu.co.uk)
Arch Hurd Developer; GNU Webmaster; FSF member #8385
http://www.archhurd.org http://www.gnu.org http://www.fsf.org
enting a working file change monitor in a couple of days, I do
tend to pick things up pretty quickly.
I think I'll have a go at the directory-tree-to-XML parser tonight and
see how I feel about the proposal after that, and revise it if
necessary.
Thanks for the comments.
--
Michael Walker (ht
file change monitor\n");
+}
+
DEBUG ("INFO: Entering main loop\n");
netfs_server_loop ();
diff --git a/xmlfs.h b/xmlfs.h
index d47613e..fa5aeb2 100644
--- a/xmlfs.h
+++ b/xmlfs.h
@@ -62,6 +62,9 @@ extern struct xmlfs *xmlfs;
error_t xmlfs_create (file_t, struct xmlf
me, O_READ);
xmlfs = malloc (sizeof (struct xmlfs));
@@ -114,7 +118,7 @@ main (int argc, char **argv)
netfs_root_node->nn_stat = underlying_stat;
netfs_root_node->nn_stat.st_mode =
-S_IFDIR | (underlying_stat.st_mode & ~S_IFMT & ~S_ITRANS);
+S_IFDIR | (underlying_stat.st_mode & (unsigned int) ~S_IFMT &
(unsigned int) ~S_ITRANS);
if (err)
error (1, err, "Cannot create filesystem");
diff --git a/xmlfs.h b/xmlfs.h
index e3c0af6..d47613e 100644
--- a/xmlfs.h
+++ b/xmlfs.h
@@ -26,6 +26,7 @@
#include
#include
#include
+#include
#include
@@ -61,7 +62,12 @@ extern struct xmlfs *xmlfs;
error_t xmlfs_create (file_t, struct xmlfs *);
+/* Parse an option from the argv array */
+error_t parse_opt (int key, char *arg, struct argp_state *state);
+
+extern char *xmlfilename;
+
extern FILE *debug;
-#define DEBUG(format, ...) if (debug) fprintf (debug, format, ## __VA_ARGS__)
+#define DEBUG(...) if (debug) fprintf (debug, __VA_ARGS__)
#endif /* __XMLFS_H__ */
--
Michael Walker (http://www.barrucadu.co.uk)
Arch Hurd Developer; GNU Webmaster; FSF member #8385
http://www.archhurd.org http://www.gnu.org http://www.fsf.org
rd programming, and so either way there will be an
improved xmlfs this year :)
--
Michael Walker (http://www.barrucadu.co.uk)
Arch Hurd Developer; GNU Webmaster; FSF member #8385
http://www.archhurd.org http://www.gnu.org http://www.fsf.org
possible :) thats why i was think about the arch hurd live cd.
>
If you're going to use the graphical one, be warned that that's pretty
much just a proof-of-concept. It's a pet project one of the devs is
working on and is pretty slow/unstable. Also, the official
installation