cont_prepare_write fix

2000-07-24 Thread Roman Zippel
Hi, While trying to get affs working again, I noticed that the current cont_prepare_write is hardly working, if you write to a file in steps of 1024, the bytes pointer is never updated resulting in an endless loop. Below is a fixed version, that also removes the bogus tricks to the bytes ptr. I

Re: cont_prepare_write fix

2000-07-24 Thread Roman Zippel
Hi, While trying to get affs working again, I noticed that the current cont_prepare_write is hardly working, if you write to a file in steps of 1024, the bytes pointer is never updated resulting in an endless loop. Testcase, please? It certainly seems to be working on FAT and HPFS -

Re: cont_prepare_write fix

2000-07-24 Thread Roman Zippel
Hi, Because actual _allocation_ unit may have nothing to blocksize and be invisible to VFS. Check fatfs - it uses the thing to trigger allocation, but actual zero-out goes on per-sector basis. I tried vfat on a MO drive with 1KByte sectors - it doesn't work. I also don't know how you want to

preallocation possibility

2000-06-27 Thread Roman Zippel
Hi, I know that topic come up before, but I have an idea how preallocation could be implemented. Basically I want to make the mechanism in ext2 (that is only internally used for file preallocation) generally available. I think it should be possible to split the get_block operation into a block