public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: wysochanski@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2 ./WHATS_NEW lib/activate/activate.c lib/a ... Date: Mon, 02 Jul 2007 11:17:00 -0000 [thread overview] Message-ID: <20070702111722.16421.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: wysochanski@sourceware.org 2007-07-02 11:17:21 Modified files: . : WHATS_NEW lib/activate : activate.c dev_manager.c lib/format_text: archive.c format-text.c lib/snapshot : snapshot.c Log message: Don't use index and rindex functions marked by SUSv3 as legacy - Jakub Bogusz <qboosh@pld-linux.org> Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.643&r2=1.644 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/activate/activate.c.diff?cvsroot=lvm2&r1=1.123&r2=1.124 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/activate/dev_manager.c.diff?cvsroot=lvm2&r1=1.124&r2=1.125 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/archive.c.diff?cvsroot=lvm2&r1=1.26&r2=1.27 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/format-text.c.diff?cvsroot=lvm2&r1=1.76&r2=1.77 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/snapshot/snapshot.c.diff?cvsroot=lvm2&r1=1.19&r2=1.20 --- LVM2/WHATS_NEW 2007/06/28 17:59:34 1.643 +++ LVM2/WHATS_NEW 2007/07/02 11:17:20 1.644 @@ -1,5 +1,6 @@ Version 2.02.27 - ================================ + Don't use index and rindex functions marked by SUSv3 as legacy. Fix vgsplit if splitting all PVs from VG. Fix lvmdiskscan volume reporting when run in the lvm shell Fix missing lvm_shell symbol in lvm2cmd library. (2.02.23) --- LVM2/lib/activate/activate.c 2007/06/28 17:33:43 1.123 +++ LVM2/lib/activate/activate.c 2007/07/02 11:17:21 1.124 @@ -313,7 +313,7 @@ else continue; } - if (!index(str, '/')) { + if (!strchr(str, '/')) { /* vgname supplied */ if (!strcmp(str, lv->vg->name)) return 1; --- LVM2/lib/activate/dev_manager.c 2007/05/15 14:42:01 1.124 +++ LVM2/lib/activate/dev_manager.c 2007/07/02 11:17:21 1.125 @@ -561,7 +561,7 @@ log_debug("Getting device info for %s", dl->name); /* Rename? */ - if ((suffix = rindex(dl->dlid + sizeof(UUID_PREFIX) - 1, '-'))) + if ((suffix = strrchr(dl->dlid + sizeof(UUID_PREFIX) - 1, '-'))) suffix++; newname = build_dm_name(dm->mem, dm->vg_name, dl->lv->name, suffix); --- LVM2/lib/format_text/archive.c 2007/06/08 22:38:48 1.26 +++ LVM2/lib/format_text/archive.c 2007/07/02 11:17:21 1.27 @@ -71,7 +71,7 @@ if (strcmp(".vg", dot)) return 0; - if (!(underscore = rindex(filename, '_'))) + if (!(underscore = strrchr(filename, '_'))) return 0; if (sscanf(underscore + 1, "%u", ix) != 1) --- LVM2/lib/format_text/format-text.c 2007/06/28 17:33:44 1.76 +++ LVM2/lib/format_text/format-text.c 2007/07/02 11:17:21 1.77 @@ -850,7 +850,7 @@ char *slash; char temp_file[PATH_MAX], temp_dir[PATH_MAX]; - slash = rindex(tc->path_edit, '/'); + slash = strrchr(tc->path_edit, '/'); if (slash == 0) strcpy(temp_dir, "."); @@ -948,7 +948,7 @@ return 0; /* vgrename? */ - if ((slash = rindex(tc->path_live, '/'))) + if ((slash = strrchr(tc->path_live, '/'))) slash = slash + 1; else slash = tc->path_live; --- LVM2/lib/snapshot/snapshot.c 2006/10/18 18:01:52 1.19 +++ LVM2/lib/snapshot/snapshot.c 2007/07/02 11:17:21 1.20 @@ -98,7 +98,7 @@ float percent2; uint64_t numerator, denominator; - if (index(params, '/')) { + if (strchr(params, '/')) { if (sscanf(params, "%" PRIu64 "/%" PRIu64, &numerator, &denominator) == 2) { *total_numerator += numerator;
next reply other threads:[~2007-07-02 11:17 UTC|newest] Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-07-02 11:17 wysochanski [this message] -- strict thread matches above, loose matches on Subject: below -- 2012-03-23 9:58 zkabelac 2012-02-23 22:42 zkabelac 2012-01-25 13:10 zkabelac 2012-01-25 8:48 zkabelac 2011-11-18 19:31 zkabelac 2011-10-06 14:55 jbrassow 2011-10-03 18:37 zkabelac 2011-09-22 17:33 prajnoha 2011-06-30 18:25 agk 2011-06-22 21:31 jbrassow 2011-06-17 14:22 zkabelac 2011-06-17 14:14 zkabelac 2011-02-04 19:14 zkabelac 2011-02-03 1:24 zkabelac 2010-08-17 1:16 agk 2010-02-24 20:01 mbroz 2010-02-24 20:00 mbroz 2009-10-01 0:35 agk 2009-06-01 12:43 mbroz 2009-05-20 11:09 mbroz 2009-05-20 9:52 mbroz 2009-02-28 0:54 agk 2008-12-19 14:22 prajnoha 2008-04-07 10:23 mbroz 2008-01-30 14:00 agk 2007-11-12 20:51 agk 2007-03-08 21:08 agk 2006-10-03 17:55 agk 2006-08-21 12:55 agk 2006-08-08 21:20 agk 2005-12-19 21:01 agk 2005-10-25 19:08 agk 2005-10-19 13:59 agk 2005-06-01 16:51 agk 2005-01-12 22:58 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=20070702111722.16421.qmail@sourceware.org \ --to=wysochanski@sourceware.org \ --cc=lvm-devel@redhat.com \ --cc=lvm2-cvs@sourceware.org \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).