lkml.org 
[lkml]   [1999]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.292 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site