[PATCH 2/6] ubifs: Provide a custom llseek for directories

2017-05-21 Thread Richard Weinberger
When UBIFS is using 64bit cookies for directory offsets, we have to support seeking that deep into direcoties. Since generic_file_llseek() is uses sb->s_maxbytes it will fail for use because on ubifs sb->s_maxbytes is the real maxmal file size which can be much smaller than 64bit due to limitations

[PATCH 2/6] ubifs: Provide a custom llseek for directories

2016-12-01 Thread Richard Weinberger
When UBIFS is using 64bit cookies for directory offsets, we have to support seeking that deep into direcoties. Since generic_file_llseek() is uses sb->s_maxbytes it will fail for use because on ubifs sb->s_maxbytes is the real maxmal file size which can be much smaller than 64bit due to limitations