Re: Loop encryption module locking bug (linux-2.4.5).

Andreas Dilger (adilger@turbolinux.com)
Thu, 21 Jun 2001 12:19:16 -0600 (MDT)


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/