Messages in this thread | | | Date | Sat, 6 Nov 1999 00:11:09 +0200 | From | Matti Aarnio <> | Subject | Re: i_blocksize, long long i_size and conversion size to blocks |
| |
On Fri, Nov 05, 1999 at 10:57:34PM +0000, Petr Vandrovec Ing. VTEI wrote: > Hi, > I just downloaded 2.3.26-pre2 - and surprise, ncpfs does not compile. > It happens because of there is > inode->i_blocks = (inode->i_size - 1) / inode->i_blksize + 1; > Should I introduce i_blksize_shift into private portion of inode and > maintain i_blksize only for other kernel parts (stat syscall) or what > is correct action?
Yes, that would be the best. Most other filesystems do it already.
> I can hardcode shift value into code because of block size on ncpfs > is always 512 bytes, but I just want to know... > Thanks, > Petr Vandrovec > vandrove@vc.cvut.cz
/Matti Aarnio <matti.aarnio@sonera.fi>
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |