search for: bmap_fil

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

Did you mean: bmap_file
2014 Nov 24
1
Re: [PATCH 3/3] New APIs: bmap-file, bmap-device, bmap.
...if it's a directory fdopendir + close it? > + > + posix_fadvise (fd, 0, 0, > + POSIX_FADV_SEQUENTIAL | > + POSIX_FADV_NOREUSE | > + POSIX_FADV_DONTNEED); > + } > + > + return 0; > +} > + > +int > +do_bmap_file (const char *path) > +{ > + CLEANUP_FREE char *buf = NULL; > + > + buf = sysroot_path (path); > + if (!buf) { > + reply_with_perror ("malloc"); > + return -1; > + } > + > + return bmap_prepare (buf, path); > +} > + > +int > +do_bmap_de...
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 23
0
[PATCH 3/3] New APIs: bmap-file, bmap-device, bmap.
...EXEC); + if (fd == -1) { + reply_with_perror ("%s", orig_path); + return -1; + } + + posix_fadvise (fd, 0, 0, + POSIX_FADV_SEQUENTIAL | + POSIX_FADV_NOREUSE | + POSIX_FADV_DONTNEED); + } + + return 0; +} + +int +do_bmap_file (const char *path) +{ + CLEANUP_FREE char *buf = NULL; + + buf = sysroot_path (path); + if (!buf) { + reply_with_perror ("malloc"); + return -1; + } + + return bmap_prepare (buf, path); +} + +int +do_bmap_device (const char *device) +{ + return bmap_prepare (device, device);...
2014 Nov 24
2
[PATCH v2 0/2] patches needed for virt-bmap
Does *not* incorporate changes suggested by Pino yet. Rich.