lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0810221529200.29342@vixen.sonytel.be>
Date:	Wed, 22 Oct 2008 15:30:32 +0200 (CEST)
From:	Geert Uytterhoeven <Geert.Uytterhoeven@...ycom.com>
To:	Simen Thoresen <simentt@...phinics.no>
cc:	linux-kernel@...r.kernel.org
Subject: Re: File as generic block-device?

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.

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@...ycom.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ