 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 2/5] libxl: add libxl__xs_path_cleanup
 Ian Jackson escribió: 
 Done. +/* + * Perfrom recursive cleanup of xenstore path, from top to bottom + * just like xenstore-rm -t + */ +_hidden int libxl__xs_path_cleanup(libxl__gc *gc, char *path);I think, following my confusion, that this needs some better documentation comment. Ok, I've tried to change to something more self-explaining. 
 Are you sure? From what I've tested it seems to work ok. Also this whole thing needs to take place in a transaction, or it is racy. Probably a transaction supplied by the caller, in which case you should assert it. Ok, will add another lock. + *last = '\0'; + if (!libxl__xs_directory(gc, XBT_NULL, path,&nb)) + continue;If this fails, it should be a fatal error; we should not just blunder on. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |