File as generic block-device?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Simen Thoresen
Date: Wednesday, October 22, 2008 - 5:56 am

Hi all,

I have a project where I require to treat a file as a block-device 
(specifically, I want a file on an ext3 fs to act as one of the 
raid-members in a md-based stripe-set. I know that I can make a 
/filesystem/ on a file because both mkfs and mount (with -o loop) will 
accept a file as a block-device, but I have found no such function for 
mdadm, and am thus asking for a kernel-internal way to re-plug a file 
into the block-device layer.

Is this possible?

My current platform i CentOS5, a RHEL5 rebuild (modified 2.6.18-kernel).

-S
-- 
Simen Thoresen - Dolphin ICS Systems Administrator
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
File as generic block-device?, Simen Thoresen, (Wed Oct 22, 5:56 am)
Re: File as generic block-device?, Geert Uytterhoeven, (Wed Oct 22, 6:30 am)
Re: File as generic block-device?, martin f krafft, (Wed Oct 22, 6:33 am)
Re: File as generic block-device?, Simen Thoresen, (Wed Oct 22, 6:36 am)
Re: File as generic block-device?, Simen Thoresen, (Wed Oct 22, 6:51 am)