The ghost of sysfs past
The CONFIG_SYSFS_DEPRECATED configuration option exists as one way of mitigating the effects of a major sysfs change. In the early days of sysfs, devices tended to pop up in strange places, including, especially, under /sys/class. In order to bring more consistency to the filesystem, the layout was reorganized to move more device information into /sys/devices, create the /sys/block directory, and more. Needless to say, any such change would be fatal for systems which expected the old layout, so the configuration option was added to restore that old layout when needed.
In 2010, nobody has shipped a distribution which relies on the old layout
for some time. So Greg Kroah-Hartman has posted a patch to remove the configuration option and
the significant amount of code needed to support it; that patch has also
gone into linux-next. Greg notes: "This is no longer needed by any
userspace tools, so it's safe to remove.
"
Except that maybe it's not safe to remove. Andrew Morton quickly reported that his Fedora Core 6 box would not boot without this option. Andrew is well known for running archaic distributions just for the purpose of finding this kind of compatibility issue; one might argue that there probably are not that many other FC6 boxes in use, and even fewer which will be wanting to run 2.6.35 kernels. But, as Dave Airlie noted, RHEL5 boxes will also fail to boot, and there are rather more of those in operation.
Dave's advice was blunt: "Live with your mistakes guys, don't try and
bury them.
" He knows as well as anybody what the cost of living
with mistakes is: the graphics ABIs include a few of their own. Mistakes
will happen, but, when they become part of the user-space ABI, they can be
difficult to get away from. That is why ABI additions tend to come under
high levels of scrutiny: once somebody depends on them, they must be
supported indefinitely.
| Index entries for this article | |
|---|---|
| Kernel | Development model/User-space ABI |
Posted Jul 22, 2010 3:34 UTC (Thu)
by hmh (subscriber, #3838)
[Link] (1 responses)
Posted Jul 22, 2010 14:14 UTC (Thu)
by BenHutchings (subscriber, #37955)
[Link]
Posted Jul 22, 2010 6:20 UTC (Thu)
by russell (guest, #10458)
[Link] (8 responses)
Posted Jul 22, 2010 6:45 UTC (Thu)
by jengelh (guest, #33263)
[Link] (3 responses)
Posted Jul 22, 2010 7:49 UTC (Thu)
by rahulsundaram (subscriber, #21946)
[Link] (2 responses)
Posted Jul 31, 2010 2:57 UTC (Sat)
by walovaton (guest, #57287)
[Link] (1 responses)
Likewise, is there any support if I take a RHEL 5 box and update PHP to 5.2 or 5.3, or maybe if I decide to downgrade to PHP 4.3 (the same in RHEL 4) because it's really hard for us to test our huge web system and validate it against the newest version of PHP?.
If there is any link on the Red Hat website that explains this kind of scenarios it would be very handy for me and my company.
Posted Jul 31, 2010 3:34 UTC (Sat)
by rahulsundaram (subscriber, #21946)
[Link]
Posted Jul 24, 2010 20:15 UTC (Sat)
by jcm (subscriber, #18262)
[Link] (3 responses)
(personal opinion only)
Posted Jul 24, 2010 23:50 UTC (Sat)
by mjg59 (subscriber, #23239)
[Link] (2 responses)
Posted Jul 27, 2010 8:33 UTC (Tue)
by yodermk (subscriber, #3803)
[Link] (1 responses)
Posted Jul 27, 2010 9:43 UTC (Tue)
by rahulsundaram (subscriber, #21946)
[Link]
Posted Jul 22, 2010 9:19 UTC (Thu)
by mjthayer (guest, #39183)
[Link]
Posted Jul 22, 2010 16:44 UTC (Thu)
by Tet (guest, #5433)
[Link] (1 responses)
Well I have one, for a start. Yes, I know it's old. But it works, and does what it needs to do, so I haven't seen to fit to update it. Furthermore, it does what it does better than some of the more modern Fedora releases.
Posted Jul 22, 2010 18:04 UTC (Thu)
by Spudd86 (subscriber, #51683)
[Link]
Posted Jul 22, 2010 21:36 UTC (Thu)
by leoc (guest, #39773)
[Link] (2 responses)
Posted Jul 22, 2010 21:50 UTC (Thu)
by rahulsundaram (subscriber, #21946)
[Link]
Posted Jul 23, 2010 10:55 UTC (Fri)
by sorpigal (guest, #36106)
[Link]
Posted Jul 23, 2010 15:21 UTC (Fri)
by giraffedata (guest, #1954)
[Link] (1 responses)
This is obvious hyperbole, since there are hundreds of Linux distributions. Especially if you count a custom build.
It's a shame that a kernel developer would want to legitimize only major distributions.
It's even a shame a kernel developer would want to say a distribution is the only legitimate user of sysfs. Just last week, I had a program which is not part of a Linux distribution break because of a more recent reorganization of sysfs. The program is supposed to match up a block device special name with a location in a SAS network for maintenance purposes.
Posted Aug 6, 2010 13:17 UTC (Fri)
by gvy (guest, #11981)
[Link]
The ghost of sysfs past
The ghost of sysfs past
The ghost of sysfs past
Except that the RHEL kernel is crap for when you want some new things. And there certainly are. Time and again, people pop up in IRC that want, say, TRIM support or Xtables-addons. In reality they are not running RHEL5, but CentOS, and usually so without any support options that would cost them money. And they only do this because some whacky web administrative control panel of sorts exclusively lists RHEL as the only supported Linux OS (not even Fedora or another Enterprise distro like SLES - think of that).
The ghost of sysfs past
The ghost of sysfs past
The ghost of sysfs past
The ghost of sysfs past
The ghost of sysfs past
The ghost of sysfs past
The ghost of sysfs past
The ghost of sysfs past
The ghost of sysfs past
one might argue that there probably are not that many other FC6 boxes in use
The ghost of sysfs past
The ghost of sysfs past
How about a periodic (say once every 10 years) divorce from your mistakes? Maintaining backwards compatibility forever seems like a terrible waste of resources for an open source project.
Living with your mistakes indefinitely?
Living with your mistakes indefinitely?
Living with your mistakes indefinitely?
The ghost of sysfs past
In 2010, nobody has shipped a distribution which relies on the old layout for some time.
:)
> This is obvious hyperbole
Maybe rather an announce of Nobody Linux shipping with CONFIG_SYSFS_DEPRECATED? :)
