[Linux-Biella] cups + udev + gutsy = associazione a delinquere

Paolo Ciarrocchi paolo.ciarrocchi a gmail.com
Lun 5 Nov 2007 17:50:48 CET


On 11/5/07, leonardo LeOS buffa <leos a bilug.linux.it> wrote:
> On Sat, 03 Nov 2007 14:28:40 +0100
> Emanuele Aina <em a nerd.ocracy.org> wrote:
>
> > No, la soluzione giusta è udev.
> >
> > Con nameif si creerebbe una race condition durante il boot in quanto
> > l'interfaccia verrebbe creata col nome del kernel e poi rinominata.
>
> mah non so, io vedo che succede togliendo il disco da una macchina e
> mettendolo su un'altra
> al boot, l'unica nic viene vista come eth1

Mi sfugge qualcosa, da
http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev_vs_devfs

Provide a persistent device naming solution:
    Lots of people want to assign a specific name that they can talk to
    a device to, no matter where it is in the system, or what order they
    plugged the device in.  USB printers, SCSI disks, PCI sound cards,
    Firewire disks, USB mice, and lots of other devices all need to be
    assigned a name in a consistent manner (******udev doesn't handle network
    devices, naming them is already a solved solution, using nameif*******).
    udev allows users to create simple rules to describe what device to
    name.  If users want to call a program running a large database
    half-way around the world, asking it what to name this device, it
    can.  We don't put the naming database into the kernel (like other
    Unix variants have), everything is in userspace, and easily
    accessible.  You can even run a perl script to name your device if
    you are that crazy...

Ciao,
-- 
Paolo


Maggiori informazioni sulla lista Linux