[lkml]   [2008]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: File as generic block-device?
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.


> 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:
> Internet:
> 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
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2008-10-22 15:39    [W:0.039 / U:2.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site