Query on ubifs_assert

pavi1729 pavitra1729 at gmail.com
Wed Jul 1 04:03:26 PDT 2015


Hi,

 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 ?

PS: If this is a very basic query do let me know, I can push this to
KernelNewbies mailing list.

Thanks,
PK



More information about the linux-mtd mailing list