[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[monit-dev] [monit] r310 committed - [No log message]
From: |
monit |
Subject: |
[monit-dev] [monit] r310 committed - [No log message] |
Date: |
Sat, 18 Dec 2010 12:40:24 +0000 |
Revision: 310
Author: address@hidden
Date: Sat Dec 18 04:39:45 2010
Log: [No log message]
http://code.google.com/p/monit/source/detail?r=310
Modified:
/trunk/device/sysdep_LINUX.c
=======================================
--- /trunk/device/sysdep_LINUX.c Tue May 11 15:34:44 2010
+++ /trunk/device/sysdep_LINUX.c Sat Dec 18 04:39:45 2010
@@ -76,14 +76,12 @@
* @return NULL in the case of failure otherwise mountpoint
*/
char *device_mountpoint_sysdep(Info_T inf, char *blockdev) {
-
struct mntent *mnt;
FILE *mntfd;
ASSERT(inf);
ASSERT(blockdev);
-
if((mntfd= setmntent("/etc/mtab", "r")) == NULL) {
LogError("%s: Cannot open /etc/mtab file\n", prog);
return NULL;
@@ -91,22 +89,16 @@
/* First match is significant */
while((mnt= getmntent(mntfd)) != NULL) {
-
if(IS(blockdev, mnt->mnt_fsname)) {
-
endmntent(mntfd);
inf->mntpath[sizeof(inf->mntpath) - 1] = 0;
return strncpy(inf->mntpath, mnt->mnt_dir, sizeof(inf->mntpath) - 1);
-
- }
-
- }
-
+ }
+ }
endmntent(mntfd);
LogError("Device %s not found in /etc/mtab\n", blockdev);
return NULL;
-
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [monit-dev] [monit] r310 committed - [No log message],
monit <=