I think we have a problem with inheritance in the following patch
The problem code is below:
while it is correct about stripe number, count and offset checks, it is not correct about pool check. Since pool is optional value, it is not right to ignore parent layout just because it has no pool.
For example, I set some striping on the directory and expect all files/subdirs inside to have the same striping, but in fact that will not work, striping will be taken from fs root. Moreover, default fs striping may have no pool as well but still be used prior the parent striping.
I've encountered such problem while porting DoM patches, because it is quite visible when DOM layout is used or not as expected