|
[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ó:
This cannot be done inside of a transaction, because we cannot check that the directory is empty if the remove has not actually taken place, and checking that there are zero or one elements (the one we 'had' removed) can lead to unexpected results, as someone might be deleting elements on our back and we might actually delete a directory that still has valid entries. + *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 |