subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2008 Parallels. All Rights Reserved. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify it |
| 5 | * under the terms of version 2 of the GNU General Public License as |
| 6 | * published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it would be useful, but |
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 11 | * |
| 12 | * Further, this software is distributed without any warranty that it is |
| 13 | * free of the rightful claim of any third person regarding infringement |
| 14 | * or the like. Any license provided herein, whether implied or |
| 15 | * otherwise, applies only to this software file. Patent licenses, if |
| 16 | * any, provided herein do not apply to combinations of this program with |
| 17 | * other software, or any other product whatsoever. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License along |
Wanlong Gao | fed9641 | 2012-10-24 10:10:29 +0800 | [diff] [blame] | 20 | * with this program; if not, write the Free Software Foundation, Inc., |
| 21 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 22 | * |
| 23 | * Started by Andrew Vagin <avagin@gmail.com> |
| 24 | * |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 25 | * DESCRIPTION |
| 26 | * Check that inotify get IN_UNMOUNT event and |
| 27 | * don't block the umount command. |
| 28 | * |
| 29 | * ALGORITHM |
| 30 | * Execute sequence file's operation and check return events |
| 31 | * |
| 32 | */ |
subrata_modak | 9196051 | 2009-01-05 08:28:40 +0000 | [diff] [blame] | 33 | #include "config.h" |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 34 | |
| 35 | #include <stdio.h> |
| 36 | #include <sys/mount.h> |
| 37 | #include <sys/stat.h> |
| 38 | #include <sys/types.h> |
| 39 | #include <sys/fcntl.h> |
| 40 | #include <errno.h> |
| 41 | #include <string.h> |
| 42 | #include <sys/syscall.h> |
| 43 | #include <signal.h> |
| 44 | #include "test.h" |
Garrett Cooper | 5374050 | 2010-12-16 00:04:01 -0800 | [diff] [blame] | 45 | #include "linux_syscall_numbers.h" |
Garrett Cooper | 3bf3cb1 | 2012-05-20 10:51:55 -0700 | [diff] [blame] | 46 | #include "inotify.h" |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 47 | |
Cyril Hrubis | edea6b4 | 2013-07-09 17:28:06 +0200 | [diff] [blame] | 48 | char *TCID = "inotify03"; |
| 49 | int TST_TOTAL = 3; |
| 50 | |
Garrett Cooper | 5374050 | 2010-12-16 00:04:01 -0800 | [diff] [blame] | 51 | #if defined(HAVE_SYS_INOTIFY_H) |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 52 | #include <sys/inotify.h> |
| 53 | |
| 54 | #define EVENT_MAX 1024 |
| 55 | /* size of the event structure, not counting name */ |
DAN LI | 4a7d975 | 2013-07-16 11:09:10 +0800 | [diff] [blame] | 56 | #define EVENT_SIZE (sizeof(struct inotify_event)) |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 57 | /* reasonable guess as to size of 1024 events */ |
| 58 | #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16)) |
| 59 | |
Cyril Hrubis | edea6b4 | 2013-07-09 17:28:06 +0200 | [diff] [blame] | 60 | static void setup(void); |
| 61 | static void cleanup(void); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 62 | |
| 63 | #define BUF_SIZE 1024 |
Cyril Hrubis | 26aa0a8 | 2013-08-08 14:58:42 +0200 | [diff] [blame] | 64 | static char fname[BUF_SIZE]; |
| 65 | static int fd, fd_notify; |
| 66 | static int wd; |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 67 | |
Cyril Hrubis | 26aa0a8 | 2013-08-08 14:58:42 +0200 | [diff] [blame] | 68 | static int event_set[EVENT_MAX]; |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 69 | |
Cyril Hrubis | 26aa0a8 | 2013-08-08 14:58:42 +0200 | [diff] [blame] | 70 | static char event_buf[EVENT_BUF_LEN]; |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 71 | |
DAN LI | 4a7d975 | 2013-07-16 11:09:10 +0800 | [diff] [blame] | 72 | #define DIR_MODE (S_IRWXU | S_IRUSR | S_IXUSR | S_IRGRP | S_IXGRP) |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 73 | |
Cyril Hrubis | 26aa0a8 | 2013-08-08 14:58:42 +0200 | [diff] [blame] | 74 | static char *mntpoint = "mntpoint"; |
DAN LI | 4a7d975 | 2013-07-16 11:09:10 +0800 | [diff] [blame] | 75 | static int mount_flag; |
Cyril Hrubis | f8bf865 | 2014-06-19 16:57:53 +0200 | [diff] [blame] | 76 | static const char *device; |
| 77 | static const char *fs_type; |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 78 | |
DAN LI | 4a7d975 | 2013-07-16 11:09:10 +0800 | [diff] [blame] | 79 | int main(int argc, char *argv[]) |
subrata_modak | 56207ce | 2009-03-23 13:35:39 +0000 | [diff] [blame] | 80 | { |
Cyril Hrubis | 0b9589f | 2014-05-27 17:40:33 +0200 | [diff] [blame] | 81 | const char *msg; |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 82 | int ret; |
| 83 | int len, i, test_num; |
| 84 | |
Cyril Hrubis | f8bf865 | 2014-06-19 16:57:53 +0200 | [diff] [blame] | 85 | msg = parse_opts(argc, argv, NULL, NULL); |
DAN LI | 4a7d975 | 2013-07-16 11:09:10 +0800 | [diff] [blame] | 86 | if (msg != NULL) |
Garrett Cooper | 60fa801 | 2010-11-22 13:50:58 -0800 | [diff] [blame] | 87 | tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 88 | |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 89 | setup(); |
| 90 | |
Caspar Zhang | d59a659 | 2013-03-07 14:59:12 +0800 | [diff] [blame] | 91 | tst_count = 0; |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 92 | |
Caspar Zhang | d59a659 | 2013-03-07 14:59:12 +0800 | [diff] [blame] | 93 | event_set[tst_count] = IN_UNMOUNT; |
| 94 | tst_count++; |
| 95 | event_set[tst_count] = IN_IGNORED; |
| 96 | tst_count++; |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 97 | |
subrata_modak | 56207ce | 2009-03-23 13:35:39 +0000 | [diff] [blame] | 98 | /*check exit code from inotify_rm_watch */ |
Caspar Zhang | d59a659 | 2013-03-07 14:59:12 +0800 | [diff] [blame] | 99 | tst_count++; |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 100 | |
Caspar Zhang | d59a659 | 2013-03-07 14:59:12 +0800 | [diff] [blame] | 101 | if (TST_TOTAL != tst_count) { |
subrata_modak | 56207ce | 2009-03-23 13:35:39 +0000 | [diff] [blame] | 102 | tst_brkm(TBROK, cleanup, |
Caspar Zhang | d59a659 | 2013-03-07 14:59:12 +0800 | [diff] [blame] | 103 | "TST_TOTAL and tst_count are not equal"); |
subrata_modak | 56207ce | 2009-03-23 13:35:39 +0000 | [diff] [blame] | 104 | } |
Caspar Zhang | d59a659 | 2013-03-07 14:59:12 +0800 | [diff] [blame] | 105 | tst_count = 0; |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 106 | |
| 107 | tst_resm(TINFO, "umount %s", device); |
Cyril Hrubis | c60a230 | 2015-01-29 16:28:24 +0100 | [diff] [blame] | 108 | TEST(tst_umount(mntpoint)); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 109 | if (TEST_RETURN != 0) { |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 110 | tst_brkm(TBROK, cleanup, "umount(2) Failed " |
subrata_modak | 56207ce | 2009-03-23 13:35:39 +0000 | [diff] [blame] | 111 | "while unmounting errno = %d : %s", |
| 112 | TEST_ERRNO, strerror(TEST_ERRNO)); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 113 | } |
| 114 | mount_flag = 0; |
| 115 | |
| 116 | len = read(fd_notify, event_buf, EVENT_BUF_LEN); |
| 117 | if (len < 0) { |
Wanlong Gao | 354ebb4 | 2012-12-07 10:10:04 +0800 | [diff] [blame] | 118 | tst_brkm(TBROK | TERRNO, cleanup, |
| 119 | "read(%d, buf, %zu) failed", fd_notify, EVENT_BUF_LEN); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 120 | } |
| 121 | |
| 122 | /* check events */ |
| 123 | test_num = 0; |
| 124 | i = 0; |
| 125 | while (i < len) { |
| 126 | struct inotify_event *event; |
subrata_modak | 56207ce | 2009-03-23 13:35:39 +0000 | [diff] [blame] | 127 | event = (struct inotify_event *)&event_buf[i]; |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 128 | if (test_num >= (TST_TOTAL - 1)) { |
subrata_modak | 4babec7 | 2008-12-29 11:30:14 +0000 | [diff] [blame] | 129 | tst_resm(TFAIL, |
subrata_modak | 56207ce | 2009-03-23 13:35:39 +0000 | [diff] [blame] | 130 | "get unnecessary event: wd=%d mask=%x " |
| 131 | "cookie=%u len=%u", |
| 132 | event->wd, event->mask, |
| 133 | event->cookie, event->len); |
| 134 | } else if (event_set[test_num] == event->mask) { |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 135 | tst_resm(TPASS, "get event: wd=%d mask=%x" |
subrata_modak | 56207ce | 2009-03-23 13:35:39 +0000 | [diff] [blame] | 136 | " cookie=%u len=%u", |
| 137 | event->wd, event->mask, |
| 138 | event->cookie, event->len); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 139 | |
| 140 | } else { |
subrata_modak | 56207ce | 2009-03-23 13:35:39 +0000 | [diff] [blame] | 141 | tst_resm(TFAIL, "get event: wd=%d mask=%x " |
| 142 | "(expected %x) cookie=%u len=%u", |
| 143 | event->wd, event->mask, |
| 144 | event_set[test_num], |
| 145 | event->cookie, event->len); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 146 | } |
| 147 | test_num++; |
| 148 | i += EVENT_SIZE + event->len; |
| 149 | } |
subrata_modak | 56207ce | 2009-03-23 13:35:39 +0000 | [diff] [blame] | 150 | for (; test_num < TST_TOTAL - 1; test_num++) { |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 151 | tst_resm(TFAIL, "don't get event: mask=%x ", |
subrata_modak | 56207ce | 2009-03-23 13:35:39 +0000 | [diff] [blame] | 152 | event_set[test_num]); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 153 | |
| 154 | } |
| 155 | ret = myinotify_rm_watch(fd_notify, wd); |
| 156 | if (ret != -1 || errno != EINVAL) |
Wanlong Gao | 354ebb4 | 2012-12-07 10:10:04 +0800 | [diff] [blame] | 157 | tst_resm(TFAIL | TERRNO, |
| 158 | "inotify_rm_watch (%d, %d) didn't return EINVAL", |
| 159 | fd_notify, wd); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 160 | else |
Garrett Cooper | 045b222 | 2010-11-22 15:34:12 -0800 | [diff] [blame] | 161 | tst_resm(TPASS, "inotify_rm_watch (%d, %d) returned EINVAL", |
Wanlong Gao | 354ebb4 | 2012-12-07 10:10:04 +0800 | [diff] [blame] | 162 | fd_notify, wd); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 163 | |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 164 | cleanup(); |
Garrett Cooper | ddc4c0d | 2010-11-22 15:05:35 -0800 | [diff] [blame] | 165 | tst_exit(); |
Garrett Cooper | 2c28215 | 2010-12-16 00:55:50 -0800 | [diff] [blame] | 166 | } |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 167 | |
Cyril Hrubis | edea6b4 | 2013-07-09 17:28:06 +0200 | [diff] [blame] | 168 | static void setup(void) |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 169 | { |
| 170 | int ret; |
Garrett Cooper | 2c28215 | 2010-12-16 00:55:50 -0800 | [diff] [blame] | 171 | |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 172 | tst_sig(NOFORK, DEF_HANDLER, cleanup); |
| 173 | |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 174 | TEST_PAUSE; |
| 175 | |
Cyril Hrubis | f8bf865 | 2014-06-19 16:57:53 +0200 | [diff] [blame] | 176 | fs_type = tst_dev_fs_type(); |
| 177 | |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 178 | tst_tmpdir(); |
| 179 | |
Cyril Hrubis | f8bf865 | 2014-06-19 16:57:53 +0200 | [diff] [blame] | 180 | device = tst_acquire_device(cleanup); |
| 181 | if (!device) |
| 182 | tst_brkm(TCONF, cleanup, "Failed to obtain block device"); |
| 183 | |
| 184 | tst_mkfs(cleanup, device, fs_type, NULL); |
| 185 | |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 186 | if (mkdir(mntpoint, DIR_MODE) < 0) { |
Wanlong Gao | 354ebb4 | 2012-12-07 10:10:04 +0800 | [diff] [blame] | 187 | tst_brkm(TBROK | TERRNO, cleanup, "mkdir(%s, %#o) failed", |
| 188 | mntpoint, DIR_MODE); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 189 | } |
| 190 | |
| 191 | /* Call mount(2) */ |
Cyril Hrubis | f8bf865 | 2014-06-19 16:57:53 +0200 | [diff] [blame] | 192 | tst_resm(TINFO, "mount %s to %s fs_type=%s", device, mntpoint, fs_type); |
| 193 | TEST(mount(device, mntpoint, fs_type, 0, NULL)); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 194 | |
| 195 | /* check return code */ |
| 196 | if (TEST_RETURN != 0) { |
Wanlong Gao | 354ebb4 | 2012-12-07 10:10:04 +0800 | [diff] [blame] | 197 | tst_brkm(TBROK | TTERRNO, cleanup, "mount(2) failed"); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 198 | } |
| 199 | mount_flag = 1; |
| 200 | |
subrata_modak | 56207ce | 2009-03-23 13:35:39 +0000 | [diff] [blame] | 201 | sprintf(fname, "%s/tfile_%d", mntpoint, getpid()); |
| 202 | fd = open(fname, O_RDWR | O_CREAT, 0700); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 203 | if (fd == -1) { |
Wanlong Gao | 354ebb4 | 2012-12-07 10:10:04 +0800 | [diff] [blame] | 204 | tst_brkm(TBROK | TERRNO, cleanup, |
| 205 | "open(%s, O_RDWR|O_CREAT,0700) failed", fname); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 206 | } |
| 207 | |
| 208 | ret = write(fd, fname, 1); |
| 209 | if (ret == -1) { |
Wanlong Gao | 354ebb4 | 2012-12-07 10:10:04 +0800 | [diff] [blame] | 210 | tst_brkm(TBROK | TERRNO, cleanup, |
| 211 | "write(%d, %s, 1) failed", fd, fname); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 212 | } |
| 213 | |
| 214 | /* close the file we have open */ |
DAN LI | 4a7d975 | 2013-07-16 11:09:10 +0800 | [diff] [blame] | 215 | if (close(fd) == -1) |
Wanlong Gao | 354ebb4 | 2012-12-07 10:10:04 +0800 | [diff] [blame] | 216 | tst_brkm(TBROK | TERRNO, cleanup, "close(%s) failed", fname); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 217 | |
| 218 | fd_notify = myinotify_init(); |
| 219 | |
| 220 | if (fd_notify < 0) { |
DAN LI | 4a7d975 | 2013-07-16 11:09:10 +0800 | [diff] [blame] | 221 | if (errno == ENOSYS) |
Garrett Cooper | ddc4c0d | 2010-11-22 15:05:35 -0800 | [diff] [blame] | 222 | tst_brkm(TCONF, cleanup, |
subrata_modak | 56207ce | 2009-03-23 13:35:39 +0000 | [diff] [blame] | 223 | "inotify is not configured in this kernel."); |
DAN LI | 4a7d975 | 2013-07-16 11:09:10 +0800 | [diff] [blame] | 224 | else |
Wanlong Gao | 354ebb4 | 2012-12-07 10:10:04 +0800 | [diff] [blame] | 225 | tst_brkm(TBROK | TERRNO, cleanup, |
| 226 | "inotify_init failed"); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 227 | } |
| 228 | |
subrata_modak | 56207ce | 2009-03-23 13:35:39 +0000 | [diff] [blame] | 229 | wd = myinotify_add_watch(fd_notify, fname, IN_ALL_EVENTS); |
DAN LI | 4a7d975 | 2013-07-16 11:09:10 +0800 | [diff] [blame] | 230 | if (wd < 0) |
Wanlong Gao | 354ebb4 | 2012-12-07 10:10:04 +0800 | [diff] [blame] | 231 | tst_brkm(TBROK | TERRNO, cleanup, |
Garrett Cooper | ddc4c0d | 2010-11-22 15:05:35 -0800 | [diff] [blame] | 232 | "inotify_add_watch (%d, %s, IN_ALL_EVENTS) failed.", |
| 233 | fd_notify, fname); |
Garrett Cooper | 2c28215 | 2010-12-16 00:55:50 -0800 | [diff] [blame] | 234 | } |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 235 | |
Cyril Hrubis | edea6b4 | 2013-07-09 17:28:06 +0200 | [diff] [blame] | 236 | static void cleanup(void) |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 237 | { |
Cyril Hrubis | f8bf865 | 2014-06-19 16:57:53 +0200 | [diff] [blame] | 238 | if (fd_notify > 0 && close(fd_notify) == -1) |
Wanlong Gao | 354ebb4 | 2012-12-07 10:10:04 +0800 | [diff] [blame] | 239 | tst_resm(TWARN | TERRNO, "close(%d) failed", fd_notify); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 240 | |
| 241 | if (mount_flag) { |
Cyril Hrubis | c60a230 | 2015-01-29 16:28:24 +0100 | [diff] [blame] | 242 | TEST(tst_umount(mntpoint)); |
DAN LI | 4a7d975 | 2013-07-16 11:09:10 +0800 | [diff] [blame] | 243 | if (TEST_RETURN != 0) |
Wanlong Gao | 354ebb4 | 2012-12-07 10:10:04 +0800 | [diff] [blame] | 244 | tst_resm(TWARN | TTERRNO, "umount(%s) failed", |
| 245 | mntpoint); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 246 | } |
| 247 | |
Cyril Hrubis | f8bf865 | 2014-06-19 16:57:53 +0200 | [diff] [blame] | 248 | tst_release_device(NULL, device); |
| 249 | |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 250 | tst_rmdir(); |
Garrett Cooper | 2c28215 | 2010-12-16 00:55:50 -0800 | [diff] [blame] | 251 | } |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 252 | |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 253 | #else |
| 254 | |
Cyril Hrubis | edea6b4 | 2013-07-09 17:28:06 +0200 | [diff] [blame] | 255 | int main(void) |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 256 | { |
Garrett Cooper | 5374050 | 2010-12-16 00:04:01 -0800 | [diff] [blame] | 257 | tst_brkm(TCONF, NULL, "system doesn't have required inotify support"); |
subrata_modak | d0a9af0 | 2008-12-29 11:28:49 +0000 | [diff] [blame] | 258 | } |
| 259 | |
Markos Chandras | f4539c6 | 2012-01-03 09:41:10 +0000 | [diff] [blame] | 260 | #endif |