[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sysfs e nuovi kernel



Il giorno lun, 06/07/2009 alle 12.38 +0200, Christian Surchi ha scritto:
> Il giorno lun, 06/07/2009 alle 10.09 +0200, Alessandro Pellizzari ha
> scritto:
> > Anche io mi chiedo perche` sia deprecato...
> 
> ma chi ha detto che sia deprecato, appunto? :)

Ehmmm! Per la verita' sono stato io ad alzare il "polverone" :-)
Ieri ho ricompilato il 2.6.30-1 alla debian ed ho letto meglio la
questione che incollo qui

> CONFIG_SYSFS_DEPRECATED_V2:                                                                                                                                                                                                                                                                          
> This option switches the layout of sysfs to the deprecated version. 
> The current sysfs layout features a unified device tree
> at /sys/devices/, which is able to express a hierarchy between class
> devices. If the deprecated option is set to Y, the  unified device
> tree is split into a bus device tree at /sys/devices/ and several
> individual class device trees at /sys/class/. The class and bus
> devices will be connected by "<subsystem>:<name>" and the "device"
> links. The "block" class devices, will not show up
> in /sys/class/block/. Some subsystems will suppress the creation of
> some devices which depend on the unified device tree.
> This option is not a pure compatibility option that can be safely
> enabled on newer distributions. It will change the layout of sysfs to
> the non-extensible deprecated version, and disable some features,
> which can not be exported without confusing older userspace tools.
> Since 2007/2008 all major distributions do not enable this option, and
> ship no tools which depend on the deprecated layout or this option.
> If you are using a new kernel on an older distribution, or use older
> userspace tools, you might need to say Y here. Do not say Y, if the
> original kernel, that came with your distribution, has this option set
> to N.           
> Symbol: SYSFS_DEPRECATED_V2 [=n] Prompt: Create deprecated sysfs
> layout for older userspace tools
> Defined at init Kconfig:617
> Depends on: SYSFS Location: -> General setup
> Selects: SYSFS_DEPRECATED      

Fin'ora mi era necessario attivarlo perche' una regola in udev non mi
funzionava altrimenti ma, novita di ieri sera, dopo la ricompilazione
dell'ultimo kernel (2.6.30-1) e senza attivare questa parte mi ha
funzionato lo stesso. Boh!

Beh! grazie per le dritte e scusate se ho alzato un piccolo
polverone :-)

Ciao Genki ):o))


Reply to: