Skip to content
Snippets Groups Projects
Commit b0e49f31 authored by kalpak's avatar kalpak
Browse files

b=13128

i=adilger, rupesh

check MDS timestamp only after stat of file.
parent b14ca60a
No related merge requests found
......@@ -879,18 +879,6 @@ static int cb_find_init(char *path, DIR *parent, DIR *dir,
goto decided;
}
/* Check the time on mds. */
if (!decision) {
int for_mds;
for_mds = lustre_fs ? (S_ISREG(st->st_mode) &&
param->lmd->lmd_lmm.lmm_stripe_count)
: 0;
decision = find_time_check(st, param, for_mds);
if (decision == -1)
goto decided;
}
/* See if we can check the file type from the dirent. */
if (param->type && de != NULL && de->d_type != DT_UNKNOWN &&
de->d_type <= DT_MAX) {
......@@ -944,6 +932,18 @@ static int cb_find_init(char *path, DIR *parent, DIR *dir,
}
}
/* Check the time on mds. */
if (!decision) {
int for_mds;
for_mds = lustre_fs ? (S_ISREG(st->st_mode) &&
param->lmd->lmd_lmm.lmm_stripe_count)
: 0;
decision = find_time_check(st, param, for_mds);
if (decision == -1)
goto decided;
}
if (param->type && !checked_type) {
if ((st->st_mode & S_IFMT) == param->type) {
if (param->exclude_type)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment