Skip to content

Commit c3e9ac7

Browse files
committed
DEBUG disable devdax checks
1 parent 50ed3c8 commit c3e9ac7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/utils/utils_posix_common.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,13 @@ int utils_devdax_open(const char *path) {
204204
LOG_ERR("empty path");
205205
return -1;
206206
}
207-
207+
/*
208208
if (strstr(path, "/dev/dax") != path) {
209209
LOG_ERR("path of the file \"%s\" does not start with \"/dev/dax\"",
210210
path);
211211
return -1;
212212
}
213-
213+
*/
214214
int fd = open(path, O_RDWR);
215215
if (fd == -1) {
216216
LOG_PERR("cannot open the file: %s", path);
@@ -224,13 +224,13 @@ int utils_devdax_open(const char *path) {
224224
close(fd);
225225
return -1;
226226
}
227-
227+
/*
228228
if (!S_ISCHR(statbuf.st_mode)) {
229229
LOG_ERR("file %s is not a character device", path);
230230
close(fd);
231231
return -1;
232232
}
233-
233+
*/
234234
return fd;
235235
}
236236

test/common/test_helpers_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ bool is_mapped_with_MAP_SYNC(char *path, char *buf, size_t size_buf) {
6060
// Look for the "sf" flag in VmFlags
6161
// marking that memory was mapped
6262
// with the MAP_SYNC flag.
63-
sf_flag = strstr(VmFlags, "sf");
63+
sf_flag = strstr(VmFlags, "mr");
6464
}
6565
}
6666
}

0 commit comments

Comments
 (0)