Skip to contentSkip to conversation

LVM2 ./WHATS_NEW lib/misc/lvm-string.c lib/mis ...

PATCH [email protected] 1 participant 1 message Apr 25, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2007-04-25 19:24:19

Modified files:
. : WHATS_NEW
lib/misc : lvm-string.c lvm-string.h

Log message:
Add count_chars and count_chars_len functions, two generic string utility functions.

--

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.601&r2=1.602
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/misc/lvm-string.c.diff?cvsroot=lvm2&r1=1.12&r2=1.13
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/misc/lvm-string.h.diff?cvsroot=lvm2&r1=1.13&r2=1.14

WHATS_NEW +1 -0
@@ -1,5 +1,6 @@
 Version 2.02.25 -
 =================================
+  Add count_chars and count_chars_len functions
   Add /sys/block listings to lvm_dump.sh
   Make lvm_dump.sh list /dev recursively
   Fix thread race in clvmd.
lib/misc/lvm-string.c +36 -10

71 lines not on this page · raw message

lib/misc/lvm-string.h +4 -0
@@ -30,4 +30,8 @@
 
 int validate_name(const char *n);
 
+void count_chars(const char *str, size_t *len, int *count,
+		 char c);
+unsigned count_chars_len(const char *str, size_t size, char c);
+
 #endif