[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dm-devel
Subject:    [dm-devel] kpartx return codes
From:       Pádraig Brady <pbrady () redhat ! com>
Date:       2011-12-07 15:55:08
Message-ID: 4EDF8C5C.9080900 () redhat ! com
[Download RAW message or body]

I noticed some issues with kpartx return codes:

On an unconnected loop device we get warnings,
but an EXIT_SUCCESS ?

  # kpartx -a /dev/loop1 && echo EXIT_SUCCESS
  read error, sector 0
  llseek error
  llseek error
  llseek error
  EXIT_SUCCESS

Also for a loop device that is connected,
I get a "failed" warning, but the EXIT_SUCCESS
is appropriate in that case as the mapped device
is present and usable

  # kpartx -a /dev/loop0
 /dev/mapper/loop0p1: mknod for loop0p1 failed: File exists

cheers,
Pádraig.

p.s. the git repo on kernel.org is no longer available

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic