Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
ocfs2-tools.2690
libocfs2-Change-asserts-to-error.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libocfs2-Change-asserts-to-error.patch of Package ocfs2-tools.2690
While running fsck.ocfs2, if an assert is met, fsck.ocfs2 terminates. This error is still recoverable, because the index of the directory can be rebuilt. Converting the asserts to an error would return control to fsck. Index: ocfs2-tools-1.8.2+git.1361836695.ff84eb5/libocfs2/dir_indexed.c =================================================================== --- ocfs2-tools-1.8.2+git.1361836695.ff84eb5.orig/libocfs2/dir_indexed.c 2013-04-02 04:38:06.444732480 -0500 +++ ocfs2-tools-1.8.2+git.1361836695.ff84eb5/libocfs2/dir_indexed.c 2013-08-13 09:37:35.120453200 -0500 @@ -1436,9 +1436,11 @@ errcode_t ocfs2_dx_dir_search(ocfs2_file entry_list = &dx_leaf->dl_list; } - assert(entry_list->de_count > 0); - assert(entry_list->de_num_used > 0); - assert(dx_root->dr_num_entries > 0); + if ((entry_list->de_count == 0) || (entry_list->de_num_used == 0) || + (dx_root->dr_num_entries == 0)) { + ret = OCFS2_ET_DIR_CORRUPTED; + goto out; + } ret = ocfs2_malloc_block(fs->fs_io, &dir_buf); if (ret)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor