Re: Fullfs file system

2024-03-22 Thread Mouse
> Thanks Mouse and Martin. I got past that error. But now I'm running > into another problem - unable to determine when write op occurs (to > be able to return ENOSPC error). > I want to return ENOSPC error whenever write occurs. Which variable > contains this info? I'm confused which structs

Re: Fullfs file system

2024-03-22 Thread Ice Cream
Thanks Mouse and Martin. I got past that error. But now I'm running into another problem - unable to determine when write op occurs (to be able to return ENOSPC error). I'm trying to use the 'bypass routine' by creating a new `full_bypass` by duplicating `layer_bypass`. In this `full_bypass` I

MCLADDREFERENCE() incrementing the wrong ext_refcnt?

2024-03-22 Thread Edgar Fuß
Hello. I'm under the impression that MCLADDREFERENCE() may increment the wrong ext_refcnt. In case it's permitted (I cant't find anything to the contrary) to call MCLADDREFERENCE(m1, m2) and then MCLADDREFERENCE(m2, m3), then the second call will increment m2's ext_refcnt where it should be