search for: bmap_fin

Displaying 4 results from an estimated 4 matches for "bmap_fin".

Did you mean: bmap_file
2014 Nov 23
0
[PATCH 3/3] New APIs: bmap-file, bmap-device, bmap.
...gt; +#include <fcntl.h> +#include <unistd.h> +#include <dirent.h> +#include <sys/types.h> +#include <sys/stat.h> + +#include "daemon.h" +#include "actions.h" + +static int fd = -1; +static DIR *dir = NULL; +static struct stat statbuf; + +static void bmap_finalize (void) __attribute__((destructor)); +static void +bmap_finalize (void) +{ + if (fd >= 0) { + close (fd); + fd = -1; + } + if (dir != NULL) { + closedir (dir); + dir = NULL; + } +} + +static int +bmap_prepare (const char *path, const char *orig_path) +{ + bmap_finalize (); +...
2014 Nov 23
7
[PATCH 0/3] patches needed for virt-bmap
See http://rwmj.wordpress.com/2014/11/23/mapping-files-to-disk/
2014 Nov 24
1
Re: [PATCH 3/3] New APIs: bmap-file, bmap-device, bmap.
...; +#include <dirent.h> > +#include <sys/types.h> > +#include <sys/stat.h> > + > +#include "daemon.h" > +#include "actions.h" > + > +static int fd = -1; > +static DIR *dir = NULL; > +static struct stat statbuf; > + > +static void bmap_finalize (void) __attribute__((destructor)); > +static void > +bmap_finalize (void) > +{ > + if (fd >= 0) { > + close (fd); > + fd = -1; > + } > + if (dir != NULL) { > + closedir (dir); > + dir = NULL; > + } > +} > + > +static int > +bmap_...
2014 Nov 24
2
[PATCH v2 0/2] patches needed for virt-bmap
Does *not* incorporate changes suggested by Pino yet. Rich.