Re: XMLFS for GSoC

2011-04-07 Thread Michael Walker
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

Re: XMLFS for GSoC

2011-04-07 Thread Michael Walker
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

Re: PATCH 2/2 - monitor backing store changes and update.

2011-04-06 Thread Michael Walker
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

Re: PATCH 1/2 - fix all compiler warnings. (was XMLFS for GSoC)

2011-04-06 Thread Michael Walker
;    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

Re: XMLFS for GSoC

2011-04-06 Thread Michael Walker
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

PATCH 2/2 - monitor backing store changes and update. (was XMLFS for GSoC)

2011-04-04 Thread Michael Walker
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

PATCH 1/2 - fix all compiler warnings. (was XMLFS for GSoC)

2011-04-04 Thread Michael Walker
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

XMLFS for GSoC

2011-03-29 Thread Michael Walker
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

Re: live cd

2011-02-25 Thread Michael Walker
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