Skip to contentSkip to conversation

General questiin about SYSFS

DISCUSSION Piotr Hosowicz 4 participants 8 messages May 13, 2010 – May 15, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

I have a simple question = I've heard rumours here and there that SYSFS is deprecated and forthcoming kernels won't use it, I even see some warning during boot. Is it true? And where to disable it in the config? I could find the option in menuconfig and I don't want to edit .config by hand, because there are various *SYSFS* options there.

Please, help.

Regards,

Piotr Hosowicz

Signature · 3 lines
mUsK tFuJ wRuK!
NP: Slash - Ghost (Feat. Ian Astbury)
NB: 2.6.34-rc7-git4
#1 lore raw
Quoted 2 lines · Piotr Hosowicz

I could find the option in menuconfig and I don't want to edit .config by hand, because there are various *SYSFS* options there.

Sorry, I mistyped, I meant I _cannot_ find it in menuconfig nor in .config.

Regards,

Piotr Hosowicz

Signature · 3 lines
Polsat: oglądasz z rodzinką reklamy, a tu nagle - trach! - film!
NP: Alice In Chains - All Secrets Known
NB: 2.6.34-rc7-git4
#2 lore raw
Quoted 6 lines · Piotr Hosowicz
Quoted 2 lines · Piotr Hosowicz

I could find the option in menuconfig and I don't want to edit .config by hand, because there are various *SYSFS* options there.

Sorry, I mistyped, I meant I _cannot_ find it in menuconfig nor in .config.

The only thing about SYSFS that is deprecated AFAIK is in init/Kconfig:

config SYSFS_DEPRECATED_V2
bool "enable deprecated sysfs features to support old userspace tools" depends on SYSFS
default n
select SYSFS_DEPRECATED
help
This option switches the layout of sysfs to the deprecated version. Do not use it on recent distributions.

HTH.

#6 lore raw
In reply to Piotr Hosowicz
Quoted 4 lines · Piotr Hosowicz

Hello,

I have a simple question = I've heard rumours here and there that SYSFS is deprecated and forthcoming kernels won't use it

Nope, not true at all. Where did you hear those rumors so that I can go after them with a big stick and squash them?

Quoted 1 line

I even see some warning during boot.

What specific warning are you seeing?

Quoted 1 line

Is it true? And where to disable it in the config?

If you want to disable sysfs, you can, it's in the config file, but you have to really know what you are doing otherwise you will usually end up with a system that does not boot properly.

best of luck,

greg k-h

#3 lore raw
In reply to Randy Dunlap
Quoted 10 lines · Randy Dunlap
Quoted 6 lines · Piotr Hosowicz
Quoted 2 lines · Piotr Hosowicz

I could find the option in menuconfig and I don't want to edit .config by hand, because there are various *SYSFS* options there.

Sorry, I mistyped, I meant I _cannot_ find it in menuconfig nor in .config.

The only thing about SYSFS that is deprecated AFAIK is in init/Kconfig:

Quoted 8 lines

config SYSFS_DEPRECATED_V2
bool "enable deprecated sysfs features to support old userspace tools" depends on SYSFS
default n
select SYSFS_DEPRECATED
help
This option switches the layout of sysfs to the deprecated version. Do not use it on recent distributions.

Thanks, I have it disabled. I asked tyhe question because of such messages during boot:

May 13 16:26:24 aapi205 udevd[1432]: SYSFS{}= will be removed in a future udev version, please use ATTR{}= to match the event device, or ATTRS{}= to match a parent device, in /etc/udev/rules.d/025_logitechmouse.rules:21

As far as I can see this is rather udev question. I don't know what to do about those messages. Can you give me a hint?

For now I upgraded udev to 154-1, I will see in the morning after I build new kernel if this helps.

Regards,

Piotr Hosowicz

Signature · 4 lines
TV: "Rosjanki osiągnęły szczyt w niewłaściwym miejscu, w
niewłaściwym czasie i właściwie zupełnie niepotrzebnie."
NP: Patrick O'Hearn - Facing the Sun
NB: 2.6.34-rc7-git4
#7 lore raw
In reply to Greg KH
Quoted 8 lines · Greg KH
Quoted 4 lines · Piotr Hosowicz

Hello,

I have a simple question = I've heard rumours here and there that SYSFS is deprecated and forthcoming kernels won't use it

Nope, not true at all. Where did you hear those rumors so that I can go after them with a big stick and squash them?

Sorry, these must have been some random rumours in my head which came to being during wild Debian upgrades sessions I had.

Quoted 3 lines
Quoted 1 line

I even see some warning during boot.

What specific warning are you seeing?

See my parallel email. I didn't understand them, this - as it appeared - is udev question.

Quoted 5 lines
Quoted 1 line

Is it true? And where to disable it in the config?

If you want to disable sysfs, you can, it's in the config file, but you have to really know what you are doing otherwise you will usually end up with a system that does not boot properly.

Now I see, thanks for the reply.

Regards,

Piotr Hosowicz

Signature · 5 lines
Janusz Korwin-Mikke:
"Idiota z dyplomem to taki sam idiota,
jak przedtem - tylko z pretensjami."
NP: Patrick O'Hearn - Night Becomes Her
NB: 2.6.34-rc7-git4
#4 lore raw
In reply to Piotr Hosowicz
Quoted 20 lines · Piotr Hosowicz
Quoted 10 lines · Randy Dunlap
Quoted 6 lines · Piotr Hosowicz
Quoted 2 lines · Piotr Hosowicz

I could find the option in menuconfig and I don't want to edit .config by hand, because there are various *SYSFS* options there.

Sorry, I mistyped, I meant I _cannot_ find it in menuconfig nor in .config.

The only thing about SYSFS that is deprecated AFAIK is in init/Kconfig:

Quoted 8 lines

config SYSFS_DEPRECATED_V2
bool "enable deprecated sysfs features to support old userspace tools" depends on SYSFS
default n
select SYSFS_DEPRECATED
help
This option switches the layout of sysfs to the deprecated version. Do not use it on recent distributions.

Quoted 8 lines

Thanks, I have it disabled. I asked tyhe question because of such messages during boot:

May 13 16:26:24 aapi205 udevd[1432]: SYSFS{}= will be removed in a

future udev version, please use ATTR{}= to match the event device, or ATTRS{}= to match a parent device, in /etc/udev/rules.d/025_logitechmouse.rules:21

It is a warning for udev rules, that is saying you should replace SYSFS{}= with ATTR{}= in your rule file under /etc/udev/rules.d/, nothing related with kernel.

Thanks.

#5 lore raw
In reply to Piotr Hosowicz
Quoted 9 lines · Piotr Hosowicz

Thanks, I have it disabled. I asked tyhe question because of such messages during boot:

May 13 16:26:24 aapi205 udevd[1432]: SYSFS{}= will be removed in a future 

udev version, please use ATTR{}= to match the event device, or ATTRS{}= to match a parent device, in /etc/udev/rules.d/025_logitechmouse.rules:21

As far as I can see this is rather udev question. I don't know what to do about those messages. Can you give me a hint?

The above message tells you exactly what you need to fix in the udev rule. Please file a bug against the package that the rule came from, this is not a kernel or even a udev issue, but rather a packaging issue.

good luck,

greg k-h