Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian-packages
lustre-release
Commits
02a15997
Commit
02a15997
authored
21 years ago
by
Eric Mei
Browse files
Options
Downloads
Patches
Plain Diff
liblustre:
- fix broken readdir test
parent
71988931
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lustre/liblustre/tests/sanity.c
+3
-4
3 additions, 4 deletions
lustre/liblustre/tests/sanity.c
lustre/liblustre/tests/test_common.c
+12
-0
12 additions, 0 deletions
lustre/liblustre/tests/test_common.c
lustre/liblustre/tests/test_common.h
+1
-0
1 addition, 0 deletions
lustre/liblustre/tests/test_common.h
with
16 additions
and
4 deletions
lustre/liblustre/tests/sanity.c
+
3
−
4
View file @
02a15997
...
@@ -146,7 +146,6 @@ static void pages_io(int xfer, loff_t pos)
...
@@ -146,7 +146,6 @@ static void pages_io(int xfer, loff_t pos)
}
}
}
}
printf
(
"succefully write %d pages(%d per xfer)
\n
"
,
_npages
,
xfer
);
printf
(
"succefully write %d pages(%d per xfer)
\n
"
,
_npages
,
xfer
);
memset
(
_buffer
,
0
,
sizeof
(
_buffer
));
memset
(
_buffer
,
0
,
sizeof
(
_buffer
));
/* read */
/* read */
...
@@ -324,7 +323,7 @@ void t12()
...
@@ -324,7 +323,7 @@ void t12()
ENTRY
(
"empty directory readdir"
);
ENTRY
(
"empty directory readdir"
);
t_mkdir
(
dir
);
t_mkdir
(
dir
);
fd
=
t_open
(
dir
);
fd
=
t_open
dir
(
dir
);
t_ls
(
fd
,
buf
,
sizeof
(
buf
));
t_ls
(
fd
,
buf
,
sizeof
(
buf
));
t_close
(
fd
);
t_close
(
fd
);
t_rmdir
(
dir
);
t_rmdir
(
dir
);
...
@@ -347,7 +346,7 @@ void t13()
...
@@ -347,7 +346,7 @@ void t13()
sprintf
(
name
,
"%s%s%05d"
,
dir
,
prefix
,
i
);
sprintf
(
name
,
"%s%s%05d"
,
dir
,
prefix
,
i
);
t_touch
(
name
);
t_touch
(
name
);
}
}
fd
=
t_open
(
dir
);
fd
=
t_open
dir
(
dir
);
t_ls
(
fd
,
buf
,
sizeof
(
buf
));
t_ls
(
fd
,
buf
,
sizeof
(
buf
));
t_close
(
fd
);
t_close
(
fd
);
printf
(
"Cleanup...
\n
"
);
printf
(
"Cleanup...
\n
"
);
...
@@ -375,7 +374,7 @@ void t14()
...
@@ -375,7 +374,7 @@ void t14()
sprintf
(
name
,
"%s%s%05d"
,
dir
,
prefix
,
i
);
sprintf
(
name
,
"%s%s%05d"
,
dir
,
prefix
,
i
);
t_touch
(
name
);
t_touch
(
name
);
}
}
fd
=
t_open
(
dir
);
fd
=
t_open
dir
(
dir
);
t_ls
(
fd
,
buf
,
sizeof
(
buf
));
t_ls
(
fd
,
buf
,
sizeof
(
buf
));
t_close
(
fd
);
t_close
(
fd
);
printf
(
"Cleanup...
\n
"
);
printf
(
"Cleanup...
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
lustre/liblustre/tests/test_common.c
+
12
−
0
View file @
02a15997
...
@@ -181,6 +181,18 @@ int t_open(const char *path)
...
@@ -181,6 +181,18 @@ int t_open(const char *path)
return
fd
;
return
fd
;
}
}
int
t_opendir
(
const
char
*
path
)
{
int
fd
;
fd
=
open
(
path
,
O_RDONLY
);
if
(
fd
<
0
)
{
printf
(
"opendir(%s) error: %s
\n
"
,
path
,
strerror
(
errno
));
EXIT_RET
(
fd
);
}
return
fd
;
}
void
t_close
(
int
fd
)
void
t_close
(
int
fd
)
{
{
int
rc
;
int
rc
;
...
...
This diff is collapsed.
Click to expand it.
lustre/liblustre/tests/test_common.h
+
1
−
0
View file @
02a15997
...
@@ -21,6 +21,7 @@ void t_chmod(const char *path, const char *format, ...);
...
@@ -21,6 +21,7 @@ void t_chmod(const char *path, const char *format, ...);
void
t_rename
(
const
char
*
oldpath
,
const
char
*
newpath
);
void
t_rename
(
const
char
*
oldpath
,
const
char
*
newpath
);
int
t_open_readonly
(
const
char
*
path
);
int
t_open_readonly
(
const
char
*
path
);
int
t_open
(
const
char
*
path
);
int
t_open
(
const
char
*
path
);
int
t_opendir
(
const
char
*
path
);
void
t_close
(
int
fd
);
void
t_close
(
int
fd
);
int
t_check_stat
(
const
char
*
name
,
struct
stat
*
buf
);
int
t_check_stat
(
const
char
*
name
,
struct
stat
*
buf
);
int
t_check_stat_fail
(
const
char
*
name
);
int
t_check_stat_fail
(
const
char
*
name
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment