lazyfs icon indicating copy to clipboard operation
lazyfs copied to clipboard

fault injection should honor page sizes

Open tjungblu opened this issue 2 years ago • 1 comments

Just wanted to bring https://github.com/etcd-io/bbolt/issues/567#issuecomment-1727826001 back to your attention - is there a way I can configure the fault injection to honor the 4k page size boundaries?

Seems when I write 4k it will always fail at 2k. Also would love to hear your opinion on the fix I proposed in https://github.com/etcd-io/bbolt/pull/570 - do you think this would mitigate the init issue for the failure modes you're trying to inject?

tjungblu avatar Sep 27 '23 16:09 tjungblu

Hi! Sorry for the delayed response. I left a comment on https://github.com/etcd-io/bbolt/issues/567 explaining how to split the write into 4k chunks. The key is to configure the parts parameter with the value 4. I believe that using a temporary file and renaming it would be the best solution :)

mj-ramos avatar Nov 03 '23 15:11 mj-ramos