public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: zkabelac@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2 ./WHATS_NEW test/t-fsadm.sh tools/lvresize.c Date: Wed, 21 Sep 2011 10:39:00 -0000 [thread overview] Message-ID: <20110921103948.18576.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: zkabelac@sourceware.org 2011-09-21 10:39:47 Modified files: . : WHATS_NEW test : t-fsadm.sh tools : lvresize.c Log message: Add missing log_error() to lvresize command when fsadm tool fails Also add test case Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2124&r2=1.2125 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-fsadm.sh.diff?cvsroot=lvm2&r1=1.8&r2=1.9 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvresize.c.diff?cvsroot=lvm2&r1=1.137&r2=1.138 --- LVM2/WHATS_NEW 2011/09/19 19:36:52 1.2124 +++ LVM2/WHATS_NEW 2011/09/21 10:39:47 1.2125 @@ -1,5 +1,6 @@ Version 2.02.89 - ================================== + Add missing log_error() to lvresize command when fsadm tool fails. Add support for DM_DEV_DIR device path into fsadm script. Support different PATH setting for fsadm script testing. Surround all executed commands with quotes in fsadm script. --- LVM2/test/t-fsadm.sh 2011/09/19 19:37:26 1.8 +++ LVM2/test/t-fsadm.sh 2011/09/21 10:39:47 1.9 @@ -83,6 +83,7 @@ fscheck_ext3 mount $dev_vg_lv $mount_dir not fsadm -y --lvresize resize $vg_lv 4M + echo n | not lvresize -L4M -r -n $vg_lv lvresize -L+20M -r -n $vg_lv umount $mount_dir fscheck_ext3 --- LVM2/tools/lvresize.c 2011/09/15 18:51:11 1.137 +++ LVM2/tools/lvresize.c 2011/09/21 10:39:47 1.138 @@ -676,15 +676,15 @@ if (!lp->nofsck && !_fsadm_cmd(cmd, vg, lp, FSADM_CMD_CHECK, &status)) { if (status != FSADM_CHECK_FAILS_FOR_MOUNTED) { - stack; + log_error("Filesystem check failed."); return ECMD_FAILED; } - /* some filesystems supports online resize */ + /* some filesystems supports online resize */ } if ((lp->resize == LV_REDUCE) && !_fsadm_cmd(cmd, vg, lp, FSADM_CMD_RESIZE, NULL)) { - stack; + log_error("Filesystem resize failed."); return ECMD_FAILED; } }
reply other threads:[~2011-09-21 10:39 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20110921103948.18576.qmail@sourceware.org \ --to=zkabelac@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).