Skip to contentSkip to conversation

mount fail with option fault_injection < 20000 && >0

DISCUSSION cgxu519 2 participants 2 messages Sep 18, 2018

lore
Share & tools
lore

cgxu519

author
#0 lore raw

HI guys,

I found mount with option fault_injection < 20000 && >0 will fail with error -ENOMEM. I understand fault_injection function is explicitly mocking some errors, but isn't it better mocking errors after successful mount? Is it really allocating memory so many times during mount process?

Thanks,
Chengguang

#1 lore raw

Hi Chengguang,

Quoted 5 lines · On 2018/9/18 19:02, cgxu519 wrote:

HI guys,

I found mount with option fault_injection < 20000 && >0 will fail with error -ENOMEM.
I understand fault_injection function is explicitly mocking some errors, but

If we skip injecting error into memory allocation functions during mount, we may miss checking most error paths in fill_super(). So I think we really need this during mount.

But if you want to inject error after mount, you can reenable error injection by configuring fault_injection/fault_rate sysfs entry.

Thanks,

Quoted 17 lines

isn't it better
mocking errors after successful mount? Is it really allocating memory so many times during mount process?

Thanks,
Chengguang

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel