MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / ext3_match

Function ext3_match

Ext4Fsd/include/linux/ext4.h:3346–3354  ·  view source on GitHub ↗

* NOTE! unlike strncmp, ext3_match returns 1 for success, 0 for failure. * * `len <= EXT3_NAME_LEN' is guaranteed by caller. * `de != NULL' is guaranteed by caller. */

Source from the content-addressed store, hash-verified

3344 * `de != NULL' is guaranteed by caller.
3345 */
3346static inline int ext3_match (int len, const char * const name,
3347 struct ext3_dir_entry_2 * de)
3348{
3349 if (len != de->name_len)
3350 return 0;
3351 if (!de->inode)
3352 return 0;
3353 return !_strnicmp(name, de->name, len);
3354}
3355
3356/* calculate the first block number of the group */
3357static inline ext3_fsblk_t

Callers 3

add_dirent_to_bufFunction · 0.85
ext3_dx_find_entryFunction · 0.85
search_dirblockFunction · 0.85

Calls 1

_strnicmpFunction · 0.85

Tested by

no test coverage detected