search for: map_lookup

Displaying 15 results from an estimated 15 matches for "map_lookup".

2011 Jun 27
1
Sendmail + dovecot-lda + LDAP
...T<TMPF> -v mail -k (&(objectclass=posixaccount)(mail=%0))', `passthru')dnl ...................................... MAILER(procmail) ++++++++++++++++++++++ After re-making the sendmail: ++++++++++++++++++++++ [root at test2 /etc/mail]# sendmail -bv -d60.1 test_user at mydomain.ru map_lookup(dequote, test) => NOT FOUND (0) map_lookup(host, mydomain.ru) => mydomain.ru. (0) map_lookup(dequote, test_user) => NOT FOUND (0) map_lookup(ldapmra, test_user at mydomain.ru) => test_user at mydomain.ru (0) map_lookup(ldapmh, test_user at mydomain.ru) => NOT FOUND (68) map_lookup(ho...
2011 May 02
5
[PATCH v3 0/3] btrfs: quasi-round-robin for chunk allocation
...stripe size for each block group type, tried to find a large enough chunk, and if this fails just allocates a smaller one. This is now done in one step. The largest possible chunk (up to max_chunk_size) is searched and allocated. Because we now have only one pass, the allocation of the map (struct map_lookup) is moved down to the point where the number of stripes is already known. This way we avoid reallocation of the map. We still avoid allocating stripes that are not a multiple of STRIPE_SIZE. Changes from v1: - split into multiple parts - added some comments - generated with --patience for bette...
2011 Apr 12
3
[PATCH v2 0/3] btrfs: quasi-round-robin for chunk allocation
...stripe size for each block group type, tried to find a large enough chunk, and if this fails just allocates a smaller one. This is now done in one step. The largest possible chunk (up to max_chunk_size) is searched and allocated. Because we now have only one pass, the allocation of the map (struct map_lookup) is moved down to the point where the number of stripes is already known. This way we avoid reallocation of the map. We still avoid allocating stripes that are not a multiple of STRIPE_SIZE. Changes from v1: - split into multiple parts - added some comments - generated with --patience for bette...
2015 Sep 30
0
sendmail config finding wrong relay
...recipient domain, for example? No there are no other entries in the mailertable or access files. > Try "sendmail -d60.5 -bv [user at example.com]" to see what might be going on with local address parsing. This looks OK. (names have been changed) sendmail -d60.5 -bv bob at address.com map_lookup(dequote, root, %0=root) => NOT FOUND (0) map_lookup(host, address.com, %0=address.com) => address.com. (0) map_lookup(mailertable, address.com, %0=address.com) => NOT FOUND (0) map_lookup(mailertable, .com, %0=.com, %1=address, %2=address) => NOT FOUND (0) map_lookup(mailertable, ., %0=...
2015 Sep 30
6
sendmail config finding wrong relay
Hi all, I set my sendmail.mc file to have a SMART_HOST entry of mail.xyz.com I do "make" and "service sendmail restart" ... I should be good, but no. :) If I do "host mail.xyz.com" I get the correct address and if I "telnet mail.xyz.com 25" I get a connection. however when I do a test mail - its trying to RELAY to another host. I thought SMART_HOST was
2013 Mar 18
0
[PATCH] Btrfs-progs: fix memory leaks on cleanup
...ree(device->name); + kfree(device->label); + kfree(device); } + kfree(fs_info->fs_devices); return 0; } +static void free_mapping_cache(struct btrfs_fs_info *fs_info) +{ + struct cache_tree *cache_tree = &fs_info->mapping_tree.cache_tree; + struct cache_extent *ce; + struct map_lookup *map; + + while ((ce = find_first_cache_extent(cache_tree, 0))) { + map = container_of(ce, struct map_lookup, ce); + remove_cache_extent(cache_tree, ce); + kfree(map); + } +} + int close_ctree(struct btrfs_root *root) { int ret; @@ -1326,6 +1341,7 @@ int close_ctree(struct btrfs_root *root)...
2009 Aug 05
3
RAID[56] with arbitrary numbers of "parity" stripes.
...e); + ret = -EINVAL; + goto error; + } + } + cache->sectorsize = root->sectorsize; remove_sb_from_cache(root, cache); diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 95babc1..28291cc 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -45,12 +45,7 @@ struct map_lookup { static inline int nr_parity_stripes(struct map_lookup *map) { - if (map->type & BTRFS_BLOCK_GROUP_RAID5) - return 1; - else if (map->type & BTRFS_BLOCK_GROUP_RAID6) - return 2; - else - return 0; + return map->type >> 56; } static inline int nr_data_stripes(stru...
2011 Mar 08
6
[PATCH v1 0/6] btrfs: scrub
...the scrubs get paused and afterwards continue from the new roots. For future improvements please see the inline comments. The accompanying user mode patches will follow shortly. Thanks, Arne Arne Jansen (5): Jan Schmidt (1): btrfs: add parameter to btrfs_lookup_csum_range btrfs: make struct map_lookup public btrfs: add state information for scrub btrfs: add scrub code and prototypes btrfs: sync scrub with commit & device removal btrfs: new ioctls for scrub fs/btrfs/Makefile | 2 +- fs/btrfs/ctree.h | 44 ++- fs/btrfs/disk-io.c | 16 + fs/btrfs/file-item.c |...
2011 Aug 23
40
[PATCH 00/21] [RFC] Btrfs: restriper
Hello, This patch series adds an initial implementation of restriper (it''s a clever name for relocation framework that allows to do selective profile changing and selective balancing with some goodies like pausing/resuming and reporting progress to the user. Profile changing is global (per-FS) so far, per-subvolume profiles require some discussion and can be implemented in future.
2010 Jan 04
0
[RFC 03/12 RESEND PATCH] Btrfs: Reorder __btrfs_map_block to make code more efficient.
...ize(stripes_allocated), - GFP_NOFS); - if (!multi) - return -ENOMEM; - - atomic_set(&multi->error, 0); - } - read_lock(&em_tree->lock); em = lookup_extent_mapping(em_tree, logical, *length); read_unlock(&em_tree->lock); @@ -2663,27 +2649,6 @@ again: map = (struct map_lookup *)em->bdev; offset = logical - em->start; - if (mirror_num > map->num_stripes) - mirror_num = 0; - - /* if our multi bio struct is too small, back off and try again */ - if (rw & (1 << BIO_RW)) { - if (map->type & (BTRFS_BLOCK_GROUP_RAID1 | - BTRFS_BLOCK_GROUP...
2012 Mar 20
13
[PATCH 0 of 3 v2] PV-GRUB: add support for ext4 and btrfs
Hi, The following patches add support for ext4 and btrfs to PV-GRUB. These patches are taken nearly verbatim from those provided by Fedora and Gentoo. We''ve been using these patches for the PV-GRUB images available in EC2 for some time now with no problems. Changes from v1: - Makefile has been changed to check the exit code from patch - The btrfs patch has been rebased to apply
2018 Jul 31
0
[PATCH nbdkit 3/4] Add map filter.
...returns the mapping index of the next mapped area + * (which can be >= nr_map if there are no more mappings). In this + * case *is_mapped == false. + * + * Note this only works because of the invariant that mappings are not + * allowed to overlap. See description at top of file. + */ +size_t +map_lookup (const struct map *map, uint64_t p, int *is_mapped) +{ + size_t lo, hi, mid; + + /* Deal with the special case where the map is completely empty + * because it makes the rest of the code easier. + */ + if (map->nr_map == 0) { + *is_mapped = 0; + return 0; + } + + /* Unmapped, befo...
2003 Jul 18
5
Loadable module
Hi List! I read a post about moving a .mailbixlist to a .subscriptionfile when a user did not have one, but did have a .mailboxlist file. Timo emailed a module for that purpose, so it could be done for this user. My question is: - Where and how does dovecot call this function? - Would it be easy to use a module to a) create a mailpath (can be done as the mailuser's id, I use one uid, and my
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
2009 Aug 24
0
[PATCH] Btrfs: proper metadata -ENOSPC handling
.../ + trans = btrfs_start_transaction(root, 4); + if (IS_ERR(trans)) + return PTR_ERR(trans); lock_chunks(root); + trans->is_relocate = true; /* * step two, delete the device extents and the @@ -1761,6 +1769,11 @@ static int btrfs_relocate_chunk(struct btrfs_root *root, map = (struct map_lookup *)em->bdev; for (i = 0; i < map->num_stripes; i++) { + if (i > 0) { + /* 2 - 1 for the dev item plus the device item */ + ret = btrfs_extend_transaction(trans, root, 2); + BUG_ON(ret); + } ret = btrfs_free_dev_extent(trans, map->stripes[i].dev, map->stripe...