login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
October
»
22
Re: File as generic block-device?
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Simen Thoresen
Subject:
Re: File as generic block-device?
Date: Wednesday, October 22, 2008 - 6:36 am
Geert Uytterhoeven wrote:
quoted text
> 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
quoted text
> 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 --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
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)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Tony Luck
Re: Hardware Error Kernel Mini-Summit
James Bottomley
Re: [PATCH -mm 1/2] scsi: remove dma_is_consistent usage in 53c700
Andrey Borzenkov
Re: [possible regression] 2.6.22 reiserfs/libata sporadically hangs on resume from...
Linus Torvalds
Linux 2.6.26-rc6
Jeffrey V. Merkey
Re: Versioning file system
git
:
Morten Welinder
Re: [PATCH] use xrealloc in help.c
Junio C Hamano
Re: [PATCH 2/3] git-add--interactive: remove hunk coalescing
Jörg Sommer
[PATCH v2 08/13] Unify the lenght of $SHORT* and the commits in the TODO list
Boyd Lynn Gerber
Re: [VOTE] git versus mercurial
Stefan Näwe
Re: [PATCH] git-gui: use --exclude-standard to check for untracked files
linux-netdev
:
Andreas Sundstrom
Re: ~60k interrupts/sec for 1Gb/s iperf with r8169
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
Denys Fedoryshchenko
Re: circular locking, mirred, 2.6.24.2
David Miller
Re: [PATCH -next] sfc: Use correct macro to set event bitfield
David Miller
Re: [PATCH] ipv6: fix display of local and remote sit endpoints
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
OMAP: DSS2: SDI driver
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
m68k: amiga - Mouse platform device conversion
Linux Kernel Mailing List
drivers/acpi: use kasprintf
openbsd-misc
:
frantisek holop
Re: mount ffs as msdos, system hangs
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Úlfar M. E. Johnson
installing openbsd in xen
Eric Furman
Re: Defending OpenBSD Performance
Damien Miller
Re: Patching a SSH 'Weakness'
Colocation donated by:
Syndicate