* [linux-lvm] device-mapper: : dm-linear: Device lookup failed
@ 2004-08-11 1:17 Dan Merillat
2004-08-11 10:42 ` Christophe Saout
0 siblings, 1 reply; 3+ messages in thread
From: Dan Merillat @ 2004-08-11 1:17 UTC (permalink / raw)
To: linux-lvm
I can't use my CD-rom as a device-mapper target, is this intended?
"0 2048 linear /dev/hda1 0" works, "0 2048 linear /dev/hdc 0" does not.
(I'm actually trying to do encrypted CD-roms, but it's reproducable
using linear mappings as well.)
Right now I have to use a loopback device on the CD, then I can use
it as a device-mapper target.
--Dan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] device-mapper: : dm-linear: Device lookup failed
2004-08-11 1:17 [linux-lvm] device-mapper: : dm-linear: Device lookup failed Dan Merillat
@ 2004-08-11 10:42 ` Christophe Saout
2004-08-11 20:32 ` Dan Merillat
0 siblings, 1 reply; 3+ messages in thread
From: Christophe Saout @ 2004-08-11 10:42 UTC (permalink / raw)
To: Dan Merillat; +Cc: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 280 bytes --]
Am Dienstag, den 10.08.2004, 21:17 -0400 schrieb Dan Merillat:
> I can't use my CD-rom as a device-mapper target, is this intended?
>
> "0 2048 linear /dev/hda1 0" works, "0 2048 linear /dev/hdc 0" does not.
You have to explicitly create a read-only mapping using -r.
[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] device-mapper: : dm-linear: Device lookup failed
2004-08-11 10:42 ` Christophe Saout
@ 2004-08-11 20:32 ` Dan Merillat
0 siblings, 0 replies; 3+ messages in thread
From: Dan Merillat @ 2004-08-11 20:32 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 564 bytes --]
On Wed, 11 Aug 2004, Christophe Saout wrote:
> Am Dienstag, den 10.08.2004, 21:17 -0400 schrieb Dan Merillat:
>
> > I can't use my CD-rom as a device-mapper target, is this intended?
> >
> > "0 2048 linear /dev/hda1 0" works, "0 2048 linear /dev/hdc 0" does not.
>
> You have to explicitly create a read-only mapping using -r.
Aha, that fixes it.
Ok, may be useful to return an error message like "read-write mapping
requested on a read-only media", or just do like filesystem mounting:
demote it to read-only and report to the user.
--Dan
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 155 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-08-11 20:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-11 1:17 [linux-lvm] device-mapper: : dm-linear: Device lookup failed Dan Merillat
2004-08-11 10:42 ` Christophe Saout
2004-08-11 20:32 ` Dan Merillat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox