Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
April
March
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
List overview
Download
lvm2-commits
October 2013
----- 2025 -----
April 2025
March 2025
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
lvm2-commits@lists.fedorahosted.org
7 participants
86 discussions
Start a n
N
ew thread
master - metadata: add INTERNAL_ERROR to "Metadata inconsistency" msg
by Peter Rajnoha
10 Oct '13
10 Oct '13
Gitweb:
http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=6b35c70e8b17b096…
Commit: 6b35c70e8b17b09691d2db6ea2eadba2ee2d095d Parent: 029b8fbe767e63f1d0a4f6c81a0095af46e9a000 Author: Peter Rajnoha <prajnoha(a)redhat.com> AuthorDate: Thu Oct 10 13:34:43 2013 +0200 Committer: Peter Rajnoha <prajnoha(a)redhat.com> CommitterDate: Thu Oct 10 13:34:43 2013 +0200 metadata: add INTERNAL_ERROR to "Metadata inconsistency" msg So we can spot it better if it occurs. --- lib/format_text/flags.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/format_text/flags.c b/lib/format_text/flags.c index 6801d6c..a27b791 100644 --- a/lib/format_text/flags.c +++ b/lib/format_text/flags.c @@ -145,8 +145,8 @@ int print_flags(uint64_t status, int type, char *buffer, size_t size) return 0; if (status) - log_warn("Metadata inconsistency: Not all flags successfully " - "exported."); + log_warn(INTERNAL_ERROR "Metadata inconsistency: " + "Not all flags successfully exported."); return 1; }
1
0
0
0
master - metadata: properly register LV_NOSCAN flag
by Peter Rajnoha
10 Oct '13
10 Oct '13
Gitweb:
http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=029b8fbe767e63f1…
Commit: 029b8fbe767e63f1d0a4f6c81a0095af46e9a000 Parent: 304159c99ab59c61543cac747e47a1ff59d2dbb6 Author: Peter Rajnoha <prajnoha(a)redhat.com> AuthorDate: Thu Oct 10 13:24:32 2013 +0200 Committer: Peter Rajnoha <prajnoha(a)redhat.com> CommitterDate: Thu Oct 10 13:24:32 2013 +0200 metadata: properly register LV_NOSCAN flag Addendum to commit ce7489e which introduced a new *internal* LV_NOSCAN flag and so it needs to be marked that way properly otherwise it ends up unrecognized and improperly handled during metadata export. --- lib/format_text/flags.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/format_text/flags.c b/lib/format_text/flags.c index 5077576..6801d6c 100644 --- a/lib/format_text/flags.c +++ b/lib/format_text/flags.c @@ -61,6 +61,7 @@ static const struct flag _lv_flags[] = { {LV_REBUILD, "REBUILD", STATUS_FLAG}, {LV_WRITEMOSTLY, "WRITEMOSTLY", STATUS_FLAG}, {LV_ACTIVATION_SKIP, "ACTIVATION_SKIP", COMPATIBLE_FLAG}, + {LV_NOSCAN, NULL, 0}, {POOL_METADATA_SPARE, NULL, 0}, {RAID, NULL, 0}, {RAID_META, NULL, 0},
1
0
0
0
master - cleanup: WHATS_NEW + compiler warning about discarding const
by Peter Rajnoha
10 Oct '13
10 Oct '13
Gitweb:
http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=304159c99ab59c61…
Commit: 304159c99ab59c61543cac747e47a1ff59d2dbb6 Parent: 7d299ecbb3a56f1633f17f746f864c02cd344c85 Author: Peter Rajnoha <prajnoha(a)redhat.com> AuthorDate: Thu Oct 10 09:07:42 2013 +0200 Committer: Peter Rajnoha <prajnoha(a)redhat.com> CommitterDate: Thu Oct 10 09:09:16 2013 +0200 cleanup: WHATS_NEW + compiler warning about discarding const --- WHATS_NEW | 3 +++ daemons/lvmetad/lvmetad-core.c | 2 +- 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index a87a906..d0ed2ce 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,8 @@ Version 2.02.104 =================================== + Fix possible race during daemon worker thread creation (lvmetad). + Fix possible deadlock while clearing lvmetad cache for full rescan. + Fix possible race while creating/destroying memory pools. Recognise NVM Express devices in filter. Fix failing metadata repair when lvmetad is used. Fix incorrect memory handling when reading messages from lvmetad. diff --git a/daemons/lvmetad/lvmetad-core.c b/daemons/lvmetad/lvmetad-core.c index 5a841e0..285c8cc 100644 --- a/daemons/lvmetad/lvmetad-core.c +++ b/daemons/lvmetad/lvmetad-core.c @@ -796,7 +796,7 @@ static response pv_gone(lvmetad_state *s, request r) pvmeta = dm_hash_lookup(s->pvid_to_pvmeta, pvid); pvid_old = dm_hash_lookup_binary(s->device_to_pvid, &device, sizeof(device)); - const char *vgid = dm_hash_lookup(s->pvid_to_vgid, pvid); + char *vgid = dm_hash_lookup(s->pvid_to_vgid, pvid); if (vgid && !(vgid = dm_strdup(vgid))) { unlock_pvid_to_pvmeta(s);
1
0
0
0
master - libdaemon: Fix a subtle race in worker thread creation.
by Petr Rockai
09 Oct '13
09 Oct '13
Gitweb:
http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=7d299ecbb3a56f16…
Commit: 7d299ecbb3a56f1633f17f746f864c02cd344c85 Parent: cb613d4c101d7e9f51d70d55c1c71a471e6588ab Author: Petr Rockai <prockai(a)redhat.com> AuthorDate: Wed Oct 9 22:20:36 2013 +0200 Committer: Petr Rockai <prockai(a)redhat.com> CommitterDate: Thu Oct 10 00:34:35 2013 +0200 libdaemon: Fix a subtle race in worker thread creation. --- libdaemon/server/daemon-server.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libdaemon/server/daemon-server.c b/libdaemon/server/daemon-server.c index df2c852..b114b9f 100644 --- a/libdaemon/server/daemon-server.c +++ b/libdaemon/server/daemon-server.c @@ -381,6 +381,7 @@ static void *client_thread(void *baton) request req; response res; + b->client.thread_id = pthread_self(); buffer_init(&req.buffer); while (1) { @@ -431,6 +432,7 @@ static int handle_connect(daemon_state s) struct sockaddr_un sockaddr; client_handle client = { .thread_id = 0 }; socklen_t sl = sizeof(sockaddr); + pthread_t tid; client.socket_fd = accept(s.socket_fd, (struct sockaddr *) &sockaddr, &sl); if (client.socket_fd < 0) @@ -446,10 +448,10 @@ static int handle_connect(daemon_state s) baton->s = s; baton->client = client; - if (pthread_create(&baton->client.thread_id, NULL, client_thread, baton)) + if (pthread_create(&tid, NULL, client_thread, baton)) return 0; - pthread_detach(baton->client.thread_id); + pthread_detach(tid); return 1; }
1
0
0
0
master - lvmetad: Fix a possible deadlock in pv_clear_all.
by Petr Rockai
09 Oct '13
09 Oct '13
Gitweb:
http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=cb613d4c101d7e9f…
Commit: cb613d4c101d7e9f51d70d55c1c71a471e6588ab Parent: b5aad86710be57833879ac0e8609021828949682 Author: Petr Rockai <prockai(a)redhat.com> AuthorDate: Wed Oct 9 22:19:51 2013 +0200 Committer: Petr Rockai <prockai(a)redhat.com> CommitterDate: Thu Oct 10 00:34:35 2013 +0200 lvmetad: Fix a possible deadlock in pv_clear_all. --- daemons/lvmetad/lvmetad-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/daemons/lvmetad/lvmetad-core.c b/daemons/lvmetad/lvmetad-core.c index ed44def..5a841e0 100644 --- a/daemons/lvmetad/lvmetad-core.c +++ b/daemons/lvmetad/lvmetad-core.c @@ -829,8 +829,8 @@ static response pv_clear_all(lvmetad_state *s, request r) DEBUGLOG(s, "pv_clear_all"); lock_pvid_to_pvmeta(s); - lock_vgid_to_metadata(s); lock_pvid_to_vgid(s); + lock_vgid_to_metadata(s); destroy_metadata_hashes(s); create_metadata_hashes(s);
1
0
0
0
master - libdm: Fix a data race in dm_pool_{create, destroy}.
by Petr Rockai
09 Oct '13
09 Oct '13
Gitweb:
http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=b5aad86710be5783…
Commit: b5aad86710be57833879ac0e8609021828949682 Parent: 529a13ec8907d5693b64ca7063491db059533820 Author: Petr Rockai <prockai(a)redhat.com> AuthorDate: Wed Oct 9 22:19:06 2013 +0200 Committer: Petr Rockai <prockai(a)redhat.com> CommitterDate: Thu Oct 10 00:34:35 2013 +0200 libdm: Fix a data race in dm_pool_{create,destroy}. --- libdm/mm/pool-fast.c | 4 ++++ libdm/mm/pool.c | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/libdm/mm/pool-fast.c b/libdm/mm/pool-fast.c index 2b494d6..edb31a0 100644 --- a/libdm/mm/pool-fast.c +++ b/libdm/mm/pool-fast.c @@ -62,7 +62,9 @@ struct dm_pool *dm_pool_create(const char *name, size_t chunk_hint) while (new_size < p->chunk_size) new_size <<= 1; p->chunk_size = new_size; + pthread_mutex_lock(&_dm_pools_mutex); dm_list_add(&_dm_pools, &p->list); + pthread_mutex_unlock(&_dm_pools_mutex); return p; } @@ -77,7 +79,9 @@ void dm_pool_destroy(struct dm_pool *p) c = pr; } + pthread_mutex_lock(&_dm_pools_mutex); dm_list_del(&p->list); + pthread_mutex_unlock(&_dm_pools_mutex); dm_free(p); } diff --git a/libdm/mm/pool.c b/libdm/mm/pool.c index fd08307..ef006a4 100644 --- a/libdm/mm/pool.c +++ b/libdm/mm/pool.c @@ -15,9 +15,10 @@ #include "dmlib.h" #include <sys/mman.h> +#include <pthread.h> -/* FIXME: thread unsafe */ static DM_LIST_INIT(_dm_pools); +static pthread_mutex_t _dm_pools_mutex = PTHREAD_MUTEX_INITIALIZER; void dm_pools_check_leaks(void); #ifdef DEBUG_ENFORCE_POOL_LOCKING @@ -81,8 +82,11 @@ void dm_pools_check_leaks(void) { struct dm_pool *p; - if (dm_list_empty(&_dm_pools)) + pthread_mutex_lock(&_dm_pools_mutex); + if (dm_list_empty(&_dm_pools)) { + pthread_mutex_unlock(&_dm_pools_mutex); return; + } log_error("You have a memory leak (not released memory pool):"); dm_list_iterate_items(p, &_dm_pools) { @@ -94,6 +98,7 @@ void dm_pools_check_leaks(void) log_error(" [%p] %s", p, p->name); #endif } + pthread_mutex_unlock(&_dm_pools_mutex); log_error(INTERNAL_ERROR "Unreleased memory pool(s) found."); }
1
0
0
0
master - libdm: Link to libpthread unconditionally.
by Petr Rockai
09 Oct '13
09 Oct '13
Gitweb:
http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=529a13ec8907d569…
Commit: 529a13ec8907d5693b64ca7063491db059533820 Parent: 7bed6d1263c5a65dbdf8e6d6ead021009aa9a59a Author: Petr Rockai <prockai(a)redhat.com> AuthorDate: Thu Oct 10 00:27:53 2013 +0200 Committer: Petr Rockai <prockai(a)redhat.com> CommitterDate: Thu Oct 10 00:34:35 2013 +0200 libdm: Link to libpthread unconditionally. --- configure.in | 6 ++---- libdm/Makefile.in | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/configure.in b/configure.in index 611ab37..3bd2439 100644 --- a/configure.in +++ b/configure.in @@ -1181,10 +1181,8 @@ Features cannot be 'shared' when building statically fi ################################################################################ -if [[ "$DMEVENTD" = yes -o "$CLVMD" != none ]] ; then - AC_CHECK_LIB([pthread], [pthread_mutex_lock], - [PTHREAD_LIBS="-lpthread"], hard_bailout) -fi +AC_CHECK_LIB([pthread], [pthread_mutex_lock], + [PTHREAD_LIBS="-lpthread"], hard_bailout) ################################################################################ dnl -- Disable selinux diff --git a/libdm/Makefile.in b/libdm/Makefile.in index bddb0a0..2aa70d4 100644 --- a/libdm/Makefile.in +++ b/libdm/Makefile.in @@ -57,7 +57,7 @@ include $(top_builddir)/make.tmpl DEFS += -DDM_DEVICE_UID=@DM_DEVICE_UID@ -DDM_DEVICE_GID=@DM_DEVICE_GID@ \ -DDM_DEVICE_MODE=@DM_DEVICE_MODE@ -LIBS += $(SELINUX_LIBS) $(UDEV_LIBS) +LIBS += $(SELINUX_LIBS) $(UDEV_LIBS) $(PTHREAD_LIBS) device-mapper: all
1
0
0
0
master - filters: Add NVM Express (nvme).
by Alasdair Kergon
09 Oct '13
09 Oct '13
Gitweb:
http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=7bed6d1263c5a65d…
Commit: 7bed6d1263c5a65dbdf8e6d6ead021009aa9a59a Parent: 1b91847beb38c3bd522a6ecb62e0a275825c0b5d Author: Alasdair G Kergon <agk(a)redhat.com> AuthorDate: Wed Oct 9 20:08:07 2013 +0100 Committer: Alasdair G Kergon <agk(a)redhat.com> CommitterDate: Wed Oct 9 20:08:07 2013 +0100 filters: Add NVM Express (nvme). --- WHATS_NEW | 1 + lib/device/device-types.h | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index dd274da..a87a906 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.104 =================================== + Recognise NVM Express devices in filter. Fix failing metadata repair when lvmetad is used. Fix incorrect memory handling when reading messages from lvmetad. Fix locking in lvmetad when handling the PV which is gone. diff --git a/lib/device/device-types.h b/lib/device/device-types.h index d25c2f0..d716878 100644 --- a/lib/device/device-types.h +++ b/lib/device/device-types.h @@ -61,5 +61,6 @@ static const dev_known_type_t _dev_known_types[] = { {"skd", 16, "STEC"}, {"scm", 8, "Storage Class Memory (IBM S/390)"}, {"bcache", 1, "bcache block device cache"}, + {"nvme", 64, "NVM Express"}, {"", 0, ""} };
1
0
0
0
master - WHATS_NEW: commit 0decd75
by Peter Rajnoha
09 Oct '13
09 Oct '13
Gitweb:
http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=1b91847beb38c3bd…
Commit: 1b91847beb38c3bd522a6ecb62e0a275825c0b5d Parent: bcb44281b7c379ed3310b5f9a16ce380d84f31dc Author: Peter Rajnoha <prajnoha(a)redhat.com> AuthorDate: Wed Oct 9 15:59:19 2013 +0200 Committer: Peter Rajnoha <prajnoha(a)redhat.com> CommitterDate: Wed Oct 9 15:59:19 2013 +0200 WHATS_NEW: commit 0decd75 --- WHATS_NEW | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index 39c5b05..dd274da 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.104 =================================== + Fix failing metadata repair when lvmetad is used. Fix incorrect memory handling when reading messages from lvmetad. Fix locking in lvmetad when handling the PV which is gone. Recognize new flag to skip udev scanning in udev rules and act appropriately.
1
0
0
0
master - lvmetad: Do not try to lock a NULL vgid.
by Petr Rockai
09 Oct '13
09 Oct '13
Gitweb:
http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=bcb44281b7c379ed…
Commit: bcb44281b7c379ed3310b5f9a16ce380d84f31dc Parent: 17f3b8280b8ade397a6a4a8fd82ba7dd7d0e1d1b Author: Petr Rockai <prockai(a)redhat.com> AuthorDate: Wed Oct 9 14:53:58 2013 +0200 Committer: Petr Rockai <prockai(a)redhat.com> CommitterDate: Wed Oct 9 14:56:06 2013 +0200 lvmetad: Do not try to lock a NULL vgid. --- daemons/lvmetad/lvmetad-core.c | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/daemons/lvmetad/lvmetad-core.c b/daemons/lvmetad/lvmetad-core.c index b7a3023..ed44def 100644 --- a/daemons/lvmetad/lvmetad-core.c +++ b/daemons/lvmetad/lvmetad-core.c @@ -796,9 +796,9 @@ static response pv_gone(lvmetad_state *s, request r) pvmeta = dm_hash_lookup(s->pvid_to_pvmeta, pvid); pvid_old = dm_hash_lookup_binary(s->device_to_pvid, &device, sizeof(device)); - char *vgid = dm_strdup(dm_hash_lookup(s->pvid_to_vgid, pvid)); + const char *vgid = dm_hash_lookup(s->pvid_to_vgid, pvid); - if (!vgid) { + if (vgid && !(vgid = dm_strdup(vgid))) { unlock_pvid_to_pvmeta(s); return reply_fail("out of memory"); } @@ -807,11 +807,12 @@ static response pv_gone(lvmetad_state *s, request r) dm_hash_remove(s->pvid_to_pvmeta, pvid); unlock_pvid_to_pvmeta(s); - lock_vg(s, vgid); - vg_remove_if_missing(s, vgid, 1); - unlock_vg(s, vgid); - - dm_free(vgid); + if (vgid) { + lock_vg(s, vgid); + vg_remove_if_missing(s, vgid, 1); + unlock_vg(s, vgid); + dm_free(vgid); + } if (pvid_old) dm_free(pvid_old);
1
0
0
0
← Newer
1
2
3
4
5
6
7
8
9
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
Results per page:
10
25
50
100
200