Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
external_e2fsprogs
Commits
220c0040
Commit
220c0040
authored
22 years ago
by
Theodore Ts'o
Browse files
Options
Download
Email Patches
Plain Diff
badblocks.c (ext2fs_u32_list_count), ext2fs.h: Add new function
which returns the number of entries in the list.
parent
eca53e3c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
lib/ext2fs/ChangeLog
lib/ext2fs/ChangeLog
+5
-0
lib/ext2fs/badblocks.c
lib/ext2fs/badblocks.c
+5
-0
lib/ext2fs/ext2fs.h
lib/ext2fs/ext2fs.h
+1
-0
No files found.
lib/ext2fs/ChangeLog
View file @
220c0040
2003-03-14 Theodore Ts'o <tytso@mit.edu>
* badblocks.c (ext2fs_u32_list_count), ext2fs.h: Add new function
which returns the number of entries in the list.
2003-03-10 Theodore Ts'o <tytso@mit.edu>
* fileio.c (ext2fs_file_lseek): Fix bug added when adding 64-bit
...
...
This diff is collapsed.
Click to expand it.
lib/ext2fs/badblocks.c
View file @
220c0040
...
...
@@ -287,3 +287,8 @@ int ext2fs_badblocks_equal(ext2_badblocks_list bb1, ext2_badblocks_list bb2)
return
ext2fs_u32_list_equal
((
ext2_u32_list
)
bb1
,
(
ext2_u32_list
)
bb2
);
}
int
ext2fs_u32_list_count
(
ext2_u32_list
bb
)
{
return
bb
->
num
;
}
This diff is collapsed.
Click to expand it.
lib/ext2fs/ext2fs.h
View file @
220c0040
...
...
@@ -501,6 +501,7 @@ extern errcode_t ext2fs_badblocks_copy(ext2_badblocks_list src,
ext2_badblocks_list
*
dest
);
extern
int
ext2fs_badblocks_equal
(
ext2_badblocks_list
bb1
,
ext2_badblocks_list
bb2
);
extern
int
ext2fs_u32_list_count
(
ext2_u32_list
bb
);
/* bb_compat */
extern
errcode_t
badblocks_list_create
(
badblocks_list
*
ret
,
int
size
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment