public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2 ./WHATS_NEW lib/activate/fs.c
@ 2004-09-22 13:38 agk
0 siblings, 0 replies; 4+ messages in thread
From: agk @ 2004-09-22 13:38 UTC (permalink / raw)
To: lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk@sourceware.org 2004-09-22 13:38:37
Modified files:
. : WHATS_NEW
lib/activate : fs.c
Log message:
Fix return code from rm_link for vgmknodes.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.93&r2=1.94
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/lib/activate/fs.c.diff?cvsroot=lvm2&r1=1.32&r2=1.33
^ permalink raw reply [flat|nested] 4+ messages in thread
* LVM2 ./WHATS_NEW lib/activate/fs.c
@ 2012-02-08 10:43 zkabelac
0 siblings, 0 replies; 4+ messages in thread
From: zkabelac @ 2012-02-08 10:43 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac@sourceware.org 2012-02-08 10:43:43
Modified files:
. : WHATS_NEW
lib/activate : fs.c
Log message:
Check result of lstat
If lstat returns errno different from ENOENT, do not use the content of
struct stat 'buf'.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2257&r2=1.2258
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/activate/fs.c.diff?cvsroot=lvm2&r1=1.64&r2=1.65
--- LVM2/WHATS_NEW 2012/02/01 20:13:44 1.2257
+++ LVM2/WHATS_NEW 2012/02/08 10:43:42 1.2258
@@ -1,5 +1,6 @@
Version 2.02.91 -
===================================
+ Do not use lstat() results when failed in _rm_link().
Remove a "waiting for another thread" log message from dmeventd plugins.
Version 2.02.90 - 1st February 2012
--- LVM2/lib/activate/fs.c 2011/11/18 19:31:09 1.64
+++ LVM2/lib/activate/fs.c 2012/02/08 10:43:42 1.65
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
- * Copyright (C) 2004-2011 Red Hat, Inc. All rights reserved.
+ * Copyright (C) 2004-2012 Red Hat, Inc. All rights reserved.
*
* This file is part of LVM2.
*
@@ -225,6 +225,7 @@
static int _rm_link(const char *dev_dir, const char *vg_name,
const char *lv_name, int check_udev)
{
+ int r;
struct stat buf;
static char lv_path[PATH_MAX];
@@ -234,14 +235,14 @@
return 0;
}
- if (lstat(lv_path, &buf) && errno == ENOENT)
+ if ((r = lstat(lv_path, &buf)) && errno == ENOENT)
return 1;
else if (dm_udev_get_sync_support() && udev_checking() && check_udev)
log_warn("The link %s should have been removed by udev "
"but it is still present. Falling back to "
"direct link removal.", lv_path);
- if (!S_ISLNK(buf.st_mode)) {
+ if (r || !S_ISLNK(buf.st_mode)) {
log_error("%s not symbolic link - not removing", lv_path);
return 0;
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* LVM2 ./WHATS_NEW lib/activate/fs.c
@ 2005-03-21 14:43 agk
0 siblings, 0 replies; 4+ messages in thread
From: agk @ 2005-03-21 14:43 UTC (permalink / raw)
To: lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk@sourceware.org 2005-03-21 14:43:02
Modified files:
. : WHATS_NEW
lib/activate : fs.c
Log message:
Avoid rmdir opendir error messsages when dir was already removed.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.206&r2=1.207
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/lib/activate/fs.c.diff?cvsroot=lvm2&r1=1.33&r2=1.34
^ permalink raw reply [flat|nested] 4+ messages in thread
* LVM2 ./WHATS_NEW lib/activate/fs.c
@ 2004-09-02 14:38 agk
0 siblings, 0 replies; 4+ messages in thread
From: agk @ 2004-09-02 14:38 UTC (permalink / raw)
To: lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk@sourceware.org 2004-09-02 14:38:46
Modified files:
. : WHATS_NEW
lib/activate : fs.c
Log message:
Fix /dev/vgname mkdir perms.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.73&r2=1.74
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/lib/activate/fs.c.diff?cvsroot=lvm2&r1=1.31&r2=1.32
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-08 10:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-22 13:38 LVM2 ./WHATS_NEW lib/activate/fs.c agk
-- strict thread matches above, loose matches on Subject: below --
2012-02-08 10:43 zkabelac
2005-03-21 14:43 agk
2004-09-02 14:38 agk
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).