lkml.org 
[lkml]   [2001]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Loop encryption module locking bug (linux-2.4.5).
Date
Ingo Rohloff writes:
> PS: Because I try to understand the inner workings of the loop
> device better, I have a question:
> In lo_send is a loop: "while (len>0)". How can I configure
> a loop device, so that this loop is executed more than once.
> It seems this is only possible if "bh->b_size" is greater
> than PAGE_CACHE_SIZE. Does this mean, you have to work on
> a filesystem which uses blocks of a size > PAGE_CACHE_SIZE,
> or is bh->b_size a fixed value (which is always less than
> PAGE_CACHE_SIZE) ?

Currently, filesystems must have block size <= PAGE_CACHE_SIZE.
This may not be true in the future, so it is likely that the loop
code is "forward looking" to try to still work if the block size
can exceed the PAGE_CACHE_SIZE.

Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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