Skip to contentSkip to conversation

metadata and contents in loop device

DISCUSSION Michael Zhu 4 participants 4 messages Jan 22, 2002

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 5 lines · Michael Zhu

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.

#2 lore raw
In reply to Michael Zhu
Quoted 8 lines · Michael Zhu

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]>

Signature · 1 line
Perfection is our goal, excellence will be tolerated. -- J. Yahl
#3 lore raw
In reply to Michael Zhu
Quoted 8 lines · Michael Zhu

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)