* kpartx -l side effects
@ 2012-01-12 18:02 Pádraig Brady
2012-01-12 21:08 ` Mikulas Patocka
0 siblings, 1 reply; 5+ messages in thread
From: Pádraig Brady @ 2012-01-12 18:02 UTC (permalink / raw)
To: dm-devel
I was playing around with kpartx on 2.6.40.4-5.fc15.x86_64 and did:
kpartx -l /bin/ls
Now I get "text file busy" when trying to run ls.
How does one undo that?
cheers,
Pádraig.
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: kpartx -l side effects
2012-01-12 18:02 kpartx -l side effects Pádraig Brady
@ 2012-01-12 21:08 ` Mikulas Patocka
2012-01-13 13:16 ` Pádraig Brady
0 siblings, 1 reply; 5+ messages in thread
From: Mikulas Patocka @ 2012-01-12 21:08 UTC (permalink / raw)
To: Pádraig Brady; +Cc: dm-devel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 462 bytes --]
On Thu, 12 Jan 2012, Pádraig Brady wrote:
> I was playing around with kpartx on 2.6.40.4-5.fc15.x86_64 and did:
> kpartx -l /bin/ls
> Now I get "text file busy" when trying to run ls.
> How does one undo that?
>
> cheers,
> Pádraig.
Run losetup -a, you find that one of loopback devices is assigned to
/bin/ls (for example /dev/loop0). Then, run losetup -d /dev/loop0 to
remove that block device. Then, you can use /bin/ls again.
Mikulas
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: kpartx -l side effects
2012-01-12 21:08 ` Mikulas Patocka
@ 2012-01-13 13:16 ` Pádraig Brady
2012-01-13 16:42 ` Mikulas Patocka
0 siblings, 1 reply; 5+ messages in thread
From: Pádraig Brady @ 2012-01-13 13:16 UTC (permalink / raw)
To: Mikulas Patocka; +Cc: dm-devel
On 01/12/2012 09:08 PM, Mikulas Patocka wrote:
>
>
> On Thu, 12 Jan 2012, Pádraig Brady wrote:
>
>> I was playing around with kpartx on 2.6.40.4-5.fc15.x86_64 and did:
>> kpartx -l /bin/ls
>> Now I get "text file busy" when trying to run ls.
>> How does one undo that?
>>
>> cheers,
>> Pádraig.
>
> Run losetup -a, you find that one of loopback devices is assigned to
> /bin/ls (for example /dev/loop0). Then, run losetup -d /dev/loop0 to
> remove that block device. Then, you can use /bin/ls again.
Cool that works.
It's still a bug though right?
I.E. `kpartx -l` has side effects (only when it can't map partitions).
cheers,
Pádraig.
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: kpartx -l side effects
2012-01-13 13:16 ` Pádraig Brady
@ 2012-01-13 16:42 ` Mikulas Patocka
2012-01-13 18:54 ` Pádraig Brady
0 siblings, 1 reply; 5+ messages in thread
From: Mikulas Patocka @ 2012-01-13 16:42 UTC (permalink / raw)
To: Pádraig Brady; +Cc: dm-devel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 835 bytes --]
On Fri, 13 Jan 2012, Pádraig Brady wrote:
> On 01/12/2012 09:08 PM, Mikulas Patocka wrote:
> >
> >
> > On Thu, 12 Jan 2012, Pádraig Brady wrote:
> >
> >> I was playing around with kpartx on 2.6.40.4-5.fc15.x86_64 and did:
> >> kpartx -l /bin/ls
> >> Now I get "text file busy" when trying to run ls.
> >> How does one undo that?
> >>
> >> cheers,
> >> Pádraig.
> >
> > Run losetup -a, you find that one of loopback devices is assigned to
> > /bin/ls (for example /dev/loop0). Then, run losetup -d /dev/loop0 to
> > remove that block device. Then, you can use /bin/ls again.
>
> Cool that works.
> It's still a bug though right?
> I.E. `kpartx -l` has side effects (only when it can't map partitions).
>
> cheers,
> Pádraig.
It may be a bug. You can report it to kpartx developers.
Mikulas
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: kpartx -l side effects
2012-01-13 16:42 ` Mikulas Patocka
@ 2012-01-13 18:54 ` Pádraig Brady
0 siblings, 0 replies; 5+ messages in thread
From: Pádraig Brady @ 2012-01-13 18:54 UTC (permalink / raw)
To: christophe.varoqui; +Cc: dm-devel
On 01/13/2012 04:42 PM, Mikulas Patocka wrote:
>
>
> On Fri, 13 Jan 2012, Pádraig Brady wrote:
>
>> On 01/12/2012 09:08 PM, Mikulas Patocka wrote:
>>>
>>>
>>> On Thu, 12 Jan 2012, Pádraig Brady wrote:
>>>
>>>> I was playing around with kpartx on 2.6.40.4-5.fc15.x86_64 and did:
>>>> kpartx -l /bin/ls
>>>> Now I get "text file busy" when trying to run ls.
>>>> How does one undo that?
>>>>
>>>> cheers,
>>>> Pádraig.
>>>
>>> Run losetup -a, you find that one of loopback devices is assigned to
>>> /bin/ls (for example /dev/loop0). Then, run losetup -d /dev/loop0 to
>>> remove that block device. Then, you can use /bin/ls again.
>>
>> Cool that works.
>> It's still a bug though right?
>> I.E. `kpartx -l` has side effects (only when it can't map partitions).
>>
>> cheers,
>> Pádraig.
>
> It may be a bug. You can report it to kpartx developers.
>
> Mikulas
Sorry, http://christophe.varoqui.free.fr/ pointed here.
I've copied Christophe directly.
thanks,
Pádraig.
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-01-13 18:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-12 18:02 kpartx -l side effects Pádraig Brady
2012-01-12 21:08 ` Mikulas Patocka
2012-01-13 13:16 ` Pádraig Brady
2012-01-13 16:42 ` Mikulas Patocka
2012-01-13 18:54 ` Pádraig Brady
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).