Query on ubifs_assert

pavi1729 pavitra1729 at gmail.com
Wed Jul 1 07:10:18 EDT 2015


 FILE: fs/ubifs/misc.h :
 FUNCTION : ubifs_compr_present

"ubifs_compr_present" function has "ubifs_assert" which checks for the
valid compression value
and does a stack_dump if not.

Could there be a case where the "compr_type" is corrupt; if yes, then
does a stack_dump  suffice?
Thus if compr_type is invalid then the below return is not reliable.
    return !!ubifs_compressors[compr_type]->capi_name;

So where does this end, eventually does it go to a point where the
volume get corrupt and not unmountable ?


More information about the Kernelnewbies mailing list