Skip to contentSkip to conversation

losetup -f not working on SLES10

DISCUSSION Andre Przywara 3 participants 3 messages Dec 11, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

c/s 20404 (http://xenbits.xen.org/xen-unstable.hg?rev/830bda7a9c75) introduces "losetup -f" to the hotplug scripts to find a free loop device. This option does not exists on SLES10, so Xen unstable does not work any longer on top on SLES10. I see that using -f is much smarter than the old-fashioned way, but shouldn't we keep compatibility with older Dom0 userlands? Is a patch providing fallback to the old code an option?

Regards,
Andre.

Signature · 9 lines
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany
Tel: +49 351 448 3567 12
----to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Andrew Bowd; Thomas M. McCoy; Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
#1 lore raw

Fine by me.

K.

Quoted 12 lines · Andre Przywara

Hi,

c/s 20404 (http://xenbits.xen.org/xen-unstable.hg?rev/830bda7a9c75)
introduces "losetup -f" to the hotplug scripts to find a free loop device. This option does not exists on SLES10, so Xen unstable does not work any longer on top on SLES10. I see that using -f is much smarter than the old-fashioned way, but shouldn't we keep compatibility with older Dom0 userlands?
Is a patch providing fallback to the old code an option?

Regards,
Andre.

#2 lore raw
Quoted 14 lines · Keir Fraser

Fine by me.

K.

Quoted 8 lines · Andre Przywara

Hi,

c/s 20404 (http://xenbits.xen.org/xen-unstable.hg?rev/830bda7a9c75)
introduces "losetup -f" to the hotplug scripts to find a free loop device. This option does not exists on SLES10, so Xen unstable does not work any longer on top on SLES10. I see that using -f is much smarter than the old-fashioned way, but shouldn't we keep compatibility with older Dom0 userlands?

Ooops. I thought I checked that SLES10 had "-f", but apparently it was openSUSE.

Quoted 1 line
Quoted 1 line

Is a patch providing fallback to the old code an option?

Or maybe cleaner to just scan the output of "losetup -a" for the first unassigned device? I can work up a patch.

/gary