From: wysochanski@sourceware.org <wysochanski@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2 ./WHATS_NEW tools/toollib.c tools/toollib.h
Date: 25 Mar 2008 15:25:03 -0000 [thread overview]
Message-ID: <20080325152503.12645.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2008-03-25 15:25:00
Modified files:
. : WHATS_NEW
tools : toollib.c toollib.h
Log message:
Add 'is_reserved_lvname()' helper function.
Very similar to apply_lvname_restrictions but without the error messages.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.806&r2=1.807
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/toollib.c.diff?cvsroot=lvm2&r1=1.131&r2=1.132
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/toollib.h.diff?cvsroot=lvm2&r1=1.56&r2=1.57
--- LVM2/WHATS_NEW 2008/03/25 12:37:47 1.806
+++ LVM2/WHATS_NEW 2008/03/25 15:24:57 1.807
@@ -1,5 +1,6 @@
Version 2.02.34 -
===================================
+ Add 'is_reserved_lvname()' helper function.
Correct command name in lvmdiskscan man page.
clvmd no longer crashes if it sees nodeids over 50.
Fix potential deadlock in clvmd thread handling.
--- LVM2/tools/toollib.c 2008/02/06 16:09:51 1.131
+++ LVM2/tools/toollib.c 2008/03/25 15:24:59 1.132
@@ -1234,6 +1234,19 @@
return 1;
}
+int is_reserved_lvname(const char *name)
+{
+ int rc, old_suppress;
+
+ old_suppress = log_suppress(2);
+ rc = !apply_lvname_restrictions(name);
+ log_suppress(old_suppress);
+
+ return rc;
+}
+
+
+
/*
* Set members of struct vgcreate_params from cmdline.
* Do preliminary validation with arg_*() interface.
--- LVM2/tools/toollib.h 2008/01/15 22:56:30 1.56
+++ LVM2/tools/toollib.h 2008/03/25 15:24:59 1.57
@@ -95,6 +95,7 @@
struct list *clone_pv_list(struct dm_pool *mem, struct list *pvs);
int apply_lvname_restrictions(const char *name);
+int is_reserved_lvname(const char *name);
int fill_vg_create_params(struct cmd_context *cmd,
char *vg_name, struct vgcreate_params *vp_new,
next reply other threads:[~2008-03-25 15:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-25 15:25 wysochanski [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-03-23 14:24 LVM2 ./WHATS_NEW tools/toollib.c tools/toollib.h zkabelac
2010-04-13 23:57 agk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080325152503.12645.qmail@sourceware.org \
--to=wysochanski@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.