From: Simen Thoresen <simentt@dolphinics.no>
To: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: File as generic block-device?
Date: Wed, 22 Oct 2008 15:36:03 +0200 [thread overview]
Message-ID: <48FF2C43.6010702@dolphinics.no> (raw)
In-Reply-To: <Pine.LNX.4.64.0810221529200.29342@vixen.sonytel.be>
Geert Uytterhoeven wrote:
> On Wed, 22 Oct 2008, Simen Thoresen wrote:
>> 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?
>
> Sure! You just have to create the loop device (/dev/loop*) yourself using
> losetup(8). `mount -o loop' does it itself behind your back.
Ah! Perfect, thank you.
-S
> With kind regards,
>
> Geert Uytterhoeven
> Software Architect
>
> Sony Techsoft Centre Europe
> The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
>
> Phone: +32 (0)2 700 8453
> Fax: +32 (0)2 700 8622
> E-mail: Geert.Uytterhoeven@sonycom.com
> Internet: http://www.sony-europe.com/
>
> A division of Sony Europe (Belgium) N.V.
> VAT BE 0413.825.160 · RPR Brussels
> Fortis · BIC GEBABEBB · IBAN BE41293037680010
--
Simen Thoresen - Dolphin ICS Systems Administrator
next prev parent reply other threads:[~2008-10-22 13:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-22 12:56 File as generic block-device? Simen Thoresen
2008-10-22 13:30 ` Geert Uytterhoeven
2008-10-22 13:36 ` Simen Thoresen [this message]
2008-10-22 13:33 ` martin f krafft
2008-10-22 13:51 ` Simen Thoresen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48FF2C43.6010702@dolphinics.no \
--to=simentt@dolphinics.no \
--cc=Geert.Uytterhoeven@sonycom.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox