public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* master - qdisk: fix sysfs path diving
@ 2008-08-19 17:18 Fabio M. Di Nitto
0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2008-08-19 17:18 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=485525632d2763d69eb87bd137e798468cbfc9a3
Commit: 485525632d2763d69eb87bd137e798468cbfc9a3
Parent: f9ca99a1234d2ef4fcbf0c8a2e2e381bf68e5c42
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Fri Aug 15 19:29:32 2008 +0200
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Tue Aug 19 18:27:51 2008 +0200
qdisk: fix sysfs path diving
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
cman/qdisk/scandisk.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/cman/qdisk/scandisk.c b/cman/qdisk/scandisk.c
index 0f4efa5..4456e53 100644
--- a/cman/qdisk/scandisk.c
+++ b/cman/qdisk/scandisk.c
@@ -649,6 +649,9 @@ static int scansysfs(struct devlisthead *devlisthead, char *path, int level)
return -1;
if (!lstat(newpath, &sb)) {
+ if (S_ISDIR(sb.st_mode))
+ if (scansysfs(devlisthead, newpath, 1) < 0)
+ return -1;
if (S_ISLNK(sb.st_mode))
continue;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-19 16:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-19 17:18 master - qdisk: fix sysfs path diving Fabio M. Di Nitto
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).