From 17c1119bafeb8e7075ac73b5b2c678dff5560125 Mon Sep 17 00:00:00 2001 From: zhengchao Date: Mon, 19 Dec 2016 15:27:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=AB=E6=8F=8F=E6=96=87=E4=BB=B6=E5=A4=B9?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E4=B8=8D=E5=86=8D=E5=8F=AA=E5=A4=84=E7=90=86?= =?UTF-8?q?=E5=AF=B9DT=5FREG=E7=B1=BB=E5=9E=8B=E7=9A=84=E6=96=87=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E4=BB=A5=E6=94=AF=E6=8C=81xfs=E5=88=86=E5=8C=BA?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entry/config_monitor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/entry/config_monitor.cpp b/src/entry/config_monitor.cpp index fe5f6cc..85a215e 100644 --- a/src/entry/config_monitor.cpp +++ b/src/entry/config_monitor.cpp @@ -78,8 +78,9 @@ int my_scandir(const char *dir, struct dirent ***namelist, } int filter_fn(const struct dirent * ent) { - if(ent->d_type != DT_REG) - return 0; +// files in xfs are not DT_REG. +// if(ent->d_type != DT_REG) +// return 0; return (strncmp(ent->d_name,"full_config_index",strlen("full_config_index")) == 0|| strncmp(ent->d_name,"inc_config_index",strlen("inc_config_index")) == 0);