Displaying 10 results from an estimated 10 matches for "new_map".
2012 Nov 02
2
[PATCH] xen-blk: persistent-grants fixes
This patch contains fixes for persistent grants implementation v2:
* handle == 0 is a valid handle, so initialize grants in blkback
setting the handle to BLKBACK_INVALID_HANDLE instead of 0. Reported
by Konrad Rzeszutek Wilk.
* new_map is a boolean, use "true" or "false" instead of 1 and 0.
Reported by Konrad Rzeszutek Wilk.
* blkfront announces the persistent-grants feature as
feature-persistent-grants, use feature-persistent instead which is
consistent with blkback and the public Xen headers.
*...
2008 Mar 08
2
suspect valgrind error in mail-index-map.c
...;Source and destination overlap in memcpy".
I'm wondering if this code is just coping the same memory over itself,
or if it is doing something useful.
Regards,
Diego Liziero.
---
1104 void mail_index_map_move_to_memory(struct mail_index_map *map)
1105 {
1106 struct mail_index_record_map *new_map;
1107
1108 if (map->rec_map->mmap_base == NULL)
1109 return;
1110
1111 i_assert(map->rec_map->lock_id != 0);
1112
1113 new_map = array_count(&map->rec_map->maps) == 1 ? map->rec_map :
1114 mail_index_record_map_alloc(map);
1115
1116 mail_index_map_copy_records(new_m...
2018 Jul 31
0
[PATCH nbdkit 3/4] Add map filter.
...return 0;
+ else
+ return map->map[map->nr_map-1].rq_end + 1;
+}
+
+/* Add a single new mapping at the end of the map. Does NOT maintain
+ * the invariant, use insert_mapping instead.
+ */
+static int
+add_mapping (struct map *map, const struct mapping *mapping)
+{
+ struct mapping *new_map;
+
+ map->nr_map++;
+ new_map = realloc (map->map, map->nr_map * sizeof map->map[0]);
+ if (new_map == NULL) {
+ nbdkit_error ("realloc: %m");
+ return -1;
+ }
+ map->map = new_map;
+ map->map[map->nr_map-1] = *mapping;
+ return 0;
+}
+
+/* Insert a singl...
2018 Jul 31
7
[PATCH nbdkit 0/4] Add truncate and map filters.
This patch series proposes two new filters.
* truncate: This can truncate, extend, round up or round down the size
of a plugin/device. A typical usage is to fix the qemu problem that
it can only handle devices which are a multiple of 512-bytes:
nbdkit --filter=truncate random size=500 round-up=512
This will serve a virtual device with size 512 bytes. Reading from
the last 12 bytes will
2018 Jul 31
2
Re: [PATCH nbdkit 3/4] Add map filter.
...ial-casing subregions.
Is there a syntax for explicitly mentioning a subset is unmapped even
after a larger mapping is applied first (perhaps useful for redacting a
portion of a disk containing sensitive information)?
> +static int
> +insert_mapping (struct map *map, const struct mapping *new_mapping)
> +{
> + size_t i;
> +
> + /* Adjust existing mappings if they overlap with this mapping. */
> + for (i = 0; i < map->nr_map; ++i) {
> + if (mappings_overlap (&map->map[i], new_mapping)) {
> + /* The four cases are:
> + *
> + * exi...
2018 Aug 01
0
Re: [PATCH nbdkit 3/4] Add map filter.
..., so I'll add it there. At the moment
it's possible to express this in the map file, but only by positively
listing the regions you want to be mapped, not by negatively listing
regions you want unmapped.
> >+static int
> >+insert_mapping (struct map *map, const struct mapping *new_mapping)
> >+{
> >+ size_t i;
> >+
> >+ /* Adjust existing mappings if they overlap with this mapping. */
> >+ for (i = 0; i < map->nr_map; ++i) {
> >+ if (mappings_overlap (&map->map[i], new_mapping)) {
> >+ /* The four cases are:
>...
2005 Sep 08
1
1.0alpha1: another imap core, no assert
...e = 0x4f554 <_tview_lookup_uid_range>,
lookup_first = 0x4f584 <_tview_lookup_first>,
lookup_ext_full = 0x4f688 <_tview_lookup_ext_full>,
get_header_ext = 0x4f870 <_tview_get_header_ext>}, index = 0xa9328, log_view = 0xb37f8,
indexid = 1124149513, map = 0xac940, new_map = 0x0, map_refs = 0xa21a0, hdr = {
major_version = 7 '\a', minor_version = 0 '\0', base_header_size = 120, header_size = 200,
record_size = 40, compat_data = "\000\b\004", indexid = 1124149513, flags = 2,
uid_validity = 1122257472, next_uid = 271, messages_coun...
2012 Sep 19
27
[PATCH] Persistent grant maps for xen blk drivers
...grant_ref map[BLKIF_MAX_SEGMENTS_PER_REQUEST];
+ struct pers_gnt *new_pers_gnts[BLKIF_MAX_SEGMENTS_PER_REQUEST];
+ struct pers_gnt *pers_gnts[BLKIF_MAX_SEGMENTS_PER_REQUEST];
+ struct page *pages_to_gnt[BLKIF_MAX_SEGMENTS_PER_REQUEST];
+ struct pers_gnt *pers_gnt;
+ phys_addr_t addr;
int i;
+ int new_map;
int nseg = req->u.rw.nr_segments;
+ int segs_to_init = 0;
int ret = 0;
+ int use_pers_gnts;
+ use_pers_gnts = (pending_req->blkif->can_grant_persist &&
+ pending_req->blkif->pers_gnt_c <
+ BLKIF_MAX_SEGMENTS_PER_REQUEST *
+ BLKIF_MAX_PERS_REQUESTS_PER_DEV);...
2005 Dec 14
0
Assertion Failure in Current CVS Version
...<_view_lookup_uid_range>,
lookup_first = 0x808e210 <_view_lookup_first>,
lookup_ext_full = 0x808d9a0 <_view_lookup_ext_full>,
get_header_ext = 0x808e140 <_view_get_header_ext>}, index = 0x80ce000,
log_view = 0x80e2e58, indexid = 1122493952, map = 0x80cf020, new_map = 0x0,
map_refs = 0x0, hdr = {major_version = 7 '\a', minor_version = 0 '\0',
base_header_size = 120, header_size = 200, record_size = 40,
compat_data = "\001\b\004", indexid = 1122493952, flags = 0,
uid_validity = 1130429256, next_uid = 5142, messages_co...
2010 Jul 20
1
imap core dumping on signal 10
...ib-index//mail-index-map.c:502
502 map->hdr = *hdr;
(gdb) bt full
#0 0x000aa19c in mail_index_map (index=0x489, type=0) at /usr/local/src/dovecot/dovecot-1.2.12/src/lib-index//mail-index-map.c:502
ret = 2
old_map = (struct mail_index_map *) 0x162338
new_map = (struct mail_index_map *) 0x162338
st = {st_dev = 8388615, st_pad1 = {0, 0, 0}, st_ino = 30370, st_mode = 33152, st_nlink = 1, st_uid = 2295, st_gid = 102, st_rdev = 0,
st_pad2 = {0, 0}, st_size = 18736, st_atim = {tv_sec = 1279661646, tv_nsec = 937908000}, st_mtim = {tv_sec = 12796616...