2002-01-22 18:03:09

by Michael Zhu

[permalink] [raw]
Subject: metadata and contents in loop device

Hello, everyone, in my loop device I want to use
different keys to en/decrypt the file contents and the
metadata of directories/file names information. But
how can I differentiate these two types of data in the
loop device? The loop device just cares about the
block. But the metadata of directories/file names
information is just the file system information. Any
idea about this? Thanks in advance.

Michael

______________________________________________________________________
Web-hosting solutions for home and business! http://website.yahoo.ca


2002-01-22 18:07:49

by Alexander Viro

[permalink] [raw]
Subject: Re: metadata and contents in loop device



On Tue, 22 Jan 2002, Michael Zhu wrote:

> Hello, everyone, in my loop device I want to use
> different keys to en/decrypt the file contents and the
> metadata of directories/file names information. But
> how can I differentiate these two types of data in the
> loop device?

You can't.

2002-01-22 18:17:19

by Lars Marowsky-Bree

[permalink] [raw]
Subject: Re: metadata and contents in loop device

On 2002-01-22T13:02:01,
Michael Zhu <[email protected]> said:

> Hello, everyone, in my loop device I want to use
> different keys to en/decrypt the file contents and the
> metadata of directories/file names information. But
> how can I differentiate these two types of data in the
> loop device? The loop device just cares about the
> block. But the metadata of directories/file names
> information is just the file system information. Any
> idea about this? Thanks in advance.

You can't.

Not without a special filesystem, which stored both kinds of data on different
block devices. Have fun writing one ;-)

What is the intended use of this?


Sincerely,
Lars Marowsky-Br?e <[email protected]>

--
Perfection is our goal, excellence will be tolerated. -- J. Yahl

2002-01-22 18:35:00

by Xavier Bestel

[permalink] [raw]
Subject: Re: metadata and contents in loop device

On Tue, 2002-01-22 at 19:02, Michael Zhu wrote:
> Hello, everyone, in my loop device I want to use
> different keys to en/decrypt the file contents and the
> metadata of directories/file names information. But
> how can I differentiate these two types of data in the
> loop device? The loop device just cares about the
> block. But the metadata of directories/file names
> information is just the file system information. Any
> idea about this? Thanks in advance.

Mmmh ... I don't really see the point, but perhaps you should look at
stegfs (sorry, don't remember the URL)