linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bio: Determining encrypted vs plain content
@ 2017-09-13 10:03 Chandan Rajendra
  0 siblings, 0 replies; only message in thread
From: Chandan Rajendra @ 2017-09-13 10:03 UTC (permalink / raw)
  To: linux-ext4; +Cc: Theodore Ts'o, Michael Halcrow, linux-fsdevel

Hi,

I am trying to get encryption to work on block size < page size scenario
(e.g. 4k block size on ppc64's 64k page size).

One of the last scenarios that I am working on is to decrypt a page whose
blocks are not contiguously stored on the underlying disk. 

The code assumes that bio's pages are supposed to be decrypted if 
bio-b_private has a non-zero value (See the definition of 
ext4_bio_encrypted()).

Instead of that, why can't the code extract the first page from the first bio
vector of the bio and then use ext4_encrypted_inode(page->mapping->host) to
determine if bio's pages are supposed to contain encrypted data? Was there a
specific reason to not use ext4_encrypted_inode()?

-- 
chandan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-13 10:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-13 10:03 Bio: Determining encrypted vs plain content Chandan Rajendra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).