Skip to contentSkip to conversation

+ deprecate-smbfs-in-favour-of-cifs.patch added to -mm tree

DISCUSSION Dave Jones 11 participants 22 messages May 11, 2006 – May 15, 2006 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Dave Jones

author
#1 lore raw
Quoted 13 lines · Andrew Morton

The patch titled

deprecate smbfs in favour of cifs

has been added to the -mm tree. Its filename is

deprecate-smbfs-in-favour-of-cifs.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this

Quoted 6 lines

From: Andrew Morton <[email protected]>

smbfs is a bit buggy and has no maintainer. Change it to shout at the user on the first five mount attempts - tell them to switch to CIFS.

Come November we'll mark it BROKEN and see what happens.

For Fedora Core 5, I disabled SMBFS for pretty much the same reasons. Users migrating to CIFS haven't really had any problems so far, except for this case: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=186914
(Which has also come up a few times on Fedora mailing lists since).

I mailed Steve about this, and he did reply, but I can't seem to find it right now

Dave

Signature · 1 line
http://www.codemonkey.org.uk
#2 lore raw
Quoted 12 lines
Quoted 12 lines

The patch titled

deprecate smbfs in favour of cifs

has been added to the -mm tree. Its filename is

deprecate-smbfs-in-favour-of-cifs.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this

Quoted 6 lines
Quoted 6 lines

From: Andrew Morton <[email protected]>

smbfs is a bit buggy and has no maintainer. Change it to shout at the user on the first five mount attempts - tell them to switch to CIFS.

Come November we'll mark it BROKEN and see what happens.

Sorry for falling in late but we can't do that.
Win 98 (95 too?) shared can not be mounted with CIFS, it requires SMBFS. Furthermore, there seems to be a strange CIFS error when trying to do so (varying error codes)...:

13:11 shanghai:/etc # mount //wideland/hda1 /mnt/wideland -t smbfs -o password=realw 13:11 shanghai:/etc # ls /mnt/wideland

.               cygwin             DRVSPACE.BIN                      msdos.sys
..              tcpp               IO.SYS                            system.1st
DA              windows            SCANDISK.LOG                      tools.conf
Eigene Dateien  AUTOEXEC.BAT       SETUPXLG.TXT
Programme       COMMAND.COM        Verkn?pfung mit Scandisk.log.lnk
RECYCLED        CYGWIN_SYSLOG.TXT  config.sys

13:11 shanghai:/etc # umount /mnt/wideland
13:11 shanghai:/etc # mount //wideland/hda1 /mnt/wideland -t cifs -o password=realw mount error 2 = No such file or directory
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
13:11 shanghai:/etc # mount //wideland/hda1 /mnt/wideland -t cifs -o password=realw mount error 112 = Host is down
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

It's certainly not down.

Jan Engelhardt

#3 lore raw
Quoted 7 lines · Jan Engelhardt
Quoted 4 lines
Quoted 4 lines

smbfs is a bit buggy and has no maintainer. Change it to shout at the user on the first five mount attempts - tell them to switch to CIFS.

Come November we'll mark it BROKEN and see what happens.

Sorry for falling in late but we can't do that.
Win 98 (95 too?) shared can not be mounted with CIFS, it requires SMBFS.

W98? He's dead, Jim.

#4 lore raw
Quoted 6 lines · John Kelly
Quoted 2 lines · Jan Engelhardt
Quoted 2 lines
Quoted 2 lines

smbfs is a bit buggy and has no maintainer. Change it to shout at the user on the first five mount attempts - tell them to switch to CIFS.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line

Come November we'll mark it BROKEN and see what happens.

Sorry for falling in late but we can't do that.
Win 98 (95 too?) shared can not be mounted with CIFS, it requires SMBFS.

W98? He's dead, Jim.

huh, my wife has a laptop that she still uses that has w98 on it. And I do use smbfs to sometimes communicate with it. Why upgrade when you don't have to?

-- Steve

#5 lore raw
Quoted 7 lines · Steven Rostedt
Quoted 4 lines
Quoted 2 lines

Sorry for falling in late but we can't do that.
Win 98 (95 too?) shared can not be mounted with CIFS, it requires SMBFS.

W98? He's dead, Jim.

huh, my wife has a laptop that she still uses that has w98 on it. And I do use smbfs to sometimes communicate with it.

Users who need vintage features can use vintage kernels. They haven't been pulled off the market.

Quoted 1 line

Why upgrade when you don't have to?

Why drag around old worn out baggage in new kernels?

#6 lore raw
Quoted 6 lines · John Kelly
Quoted 2 lines · Steven Rostedt
Quoted 2 lines
Quoted 2 lines

Sorry for falling in late but we can't do that.
Win 98 (95 too?) shared can not be mounted with CIFS, it requires SMBFS.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

W98? He's dead, Jim.

huh, my wife has a laptop that she still uses that has w98 on it. And I do use smbfs to sometimes communicate with it.

Users who need vintage features can use vintage kernels. They haven't been pulled off the market.

Having a shiny new storage box in my house that just might need to talk with old laptops and new laptops and so on doesn't exactly jive with that.

Of course perhaps this will cause someone who does care about smbfs to setup up to the plate and maintain it.

Signature · 1 line
Tom Rini
#7 lore raw

John, on LKML it is expected to not strip CC lists and at least keep the one you are responding to.

Quoted 4 lines · Tom Rini

Of course perhaps this will cause someone who does care about smbfs to setup up to the plate and maintain it.

I admit, I only communicate to that laptop about once a year. But if need be, I'll (shudder) try to maintain it.

-- Steve

#8 lore raw
In reply to Tom Rini
Quoted 12 lines · Tom Rini
Quoted 10 lines · John Kelly
Quoted 7 lines · Steven Rostedt
Quoted 4 lines
Quoted 2 lines

Sorry for falling in late but we can't do that.
Win 98 (95 too?) shared can not be mounted with CIFS, it requires SMBFS.

W98? He's dead, Jim.

huh, my wife has a laptop that she still uses that has w98 on it. And I do use smbfs to sometimes communicate with it.

Quoted 6 lines
Quoted 2 lines

Users who need vintage features can use vintage kernels. They haven't been pulled off the market.

Having a shiny new storage box in my house that just might need to talk with old laptops and new laptops and so on doesn't exactly jive with that.

If every hypothetical user has to die off before old features are culled from the kernel, it will become a mountain of old stinking garbage.

Quoted 2 lines

Of course perhaps this will cause someone who does care about smbfs to setup up to the plate and maintain it.

Then let them maintain it out of tree. People have to maintain new features out of tree, why not old too?

#9 lore raw
In reply to John Kelly
Quoted 6 lines · John Kelly
Quoted 2 lines · Steven Rostedt
Quoted 2 lines
Quoted 2 lines

Sorry for falling in late but we can't do that.
Win 98 (95 too?) shared can not be mounted with CIFS, it requires SMBFS.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

W98? He's dead, Jim.

huh, my wife has a laptop that she still uses that has w98 on it. And I do use smbfs to sometimes communicate with it.

Users who need vintage features can use vintage kernels. They haven't been pulled off the market.

I need to have the latest on my desktop. The machine I'm communicating with is old.

Quoted 6 lines
Quoted 3 lines

Why upgrade when you don't have to?

Why drag around old worn out baggage in new kernels?

Because it's still used by new kernels.

-- Steve

#10 lore raw
In reply to John Kelly
Quoted 3 lines · John Kelly

Users who need vintage features can use vintage kernels. They haven't been pulled off the market.

I disagree.

We have two cases:

- newer kernels don't always support vintage hardware any more. We don't, for example, boot on 1MB PCs (I _think_ we used to), and quite frankly, if you have 4MB, I'd be surprised it worked either (and that definitely used to work a long time ago).

Similarly, we've occsionally dropped a driver just because it wasn't getting maintained, and we knew it couldn't work in the state it was in. So over the years, machines have stopped being supported (that said, if somebody complains, we try to re-instate the driver. Most dropped drivers have never even been commented upon, because they really aren't used any more. When was the last time you saw an MCA machine or a PC98? I bet some people on this list have never even heard of either)

- we sometimes drop sw features that have been deprecated long ago, and that there are better alternatives for. That said, this is pretty damn rare too. I can remember Xiafs, and devfs is obviously on that path too.

But we do _not_ drop features just because they are deemed "unnecessary". As long as somebody actually _uses_ smbfs, and as long as those users are willing to test and perhaps send in patches for when/if it breaks, we should not drop it.

The cost of keeping a filesystem is not normally very high. The way filesystems in particular get deprecated is if they have really serious problems, and nobody ends up being able or willing to fix them at all, and you _can_ migrate away. But if we're talking about win98, it probably still actually has a pretty big user base, and most of the machines that run it probably really cannot upgrade.

For exactly the same reason you mention:

"Users who need vintage features can use vintage kernels."

ie you end up having people who have vintage hardware, and they use vintage kernels, but in their case, the "vintage" is Win95 or Win98. That does't mean that the _linux_ machine they use is necessarily vintage.

Linus

#11 lore raw
Quoted 6 lines · Linus Torvalds
Quoted 2 lines · John Kelly

Users who need vintage features can use vintage kernels. They haven't been pulled off the market.

I disagree.

What can I say? You're the man. I think you maintain a great kernel, btw.

I just think forward progress would be easier without dragging around some of the old baggage in the kernel.

#12 lore raw
Quoted 3 lines · John Kelly

I just think forward progress would be easier without dragging around some of the old baggage in the kernel.

I think that is generally true, but we've actually been pretty successful in having a modular enough source tree that most of the time, old code simply is old - and doesn't much affect new code.

That is especially true in filesystems. We've had a few fairly painful times (the page cache changes in 2.3.x and the switch to the dentry cache in 2.1.x(?)), but on the whole we've had a pretty stable VFS interface that hasn't needed _that_ much work for individual filesystems.

We've had much bigger problems with drivers, although there the main reason for the problems is just that if some interface changes even very trivially, there's just so _many_ drivers that they tend to be harder to fix up (and they tend to do things that you can't "think about" because it's very much due to bugs or specific issues with some random piece of hardware that most developers don't even have access to).

Also, while it can be easier in _one_sense_ to move forwards if you drop the old stuff, it often ends up making it harder in another sense: it can mean, for example, that people or distributions need to do more work to update, which in turn can mean that you have a much harder time getting the change tested.

Which then in turn can mean that you actually lose more developer time than you gained from the code simplification..

So it's not always a very clear-cut thing. For the _users_ (and those are who matter most), backwards compatibility is almost always absolutely the biggest priority, and everything else comes second.

Linus

#13 lore raw
In reply to Linus Torvalds
Quoted 35 lines · Linus Torvalds
Quoted 4 lines · John Kelly

Users who need vintage features can use vintage kernels. They haven't been pulled off the market.

I disagree.

We have two cases:

- newer kernels don't always support vintage hardware any more. We don't, for example, boot on 1MB PCs (I _think_ we used to), and quite frankly, if you have 4MB, I'd be surprised it worked either (and that definitely used to work a long time ago).

Similarly, we've occsionally dropped a driver just because it wasn't getting maintained, and we knew it couldn't work in the state it was in. So over the years, machines have stopped being supported (that said, if somebody complains, we try to re-instate the driver. Most dropped drivers have never even been commented upon, because they really aren't used any more. When was the last time you saw an MCA machine or a PC98? I bet some people on this list have never even heard of either)

- we sometimes drop sw features that have been deprecated long ago, and that there are better alternatives for. That said, this is pretty damn rare too. I can remember Xiafs, and devfs is obviously on that path too.

But we do _not_ drop features just because they are deemed "unnecessary". As long as somebody actually _uses_ smbfs, and as long as those users are willing to test and perhaps send in patches for when/if it breaks, we should not drop it.

The cost of keeping a filesystem is not normally very high. The way filesystems in particular get deprecated is if they have really serious problems, and nobody ends up being able or willing to fix them at all, and you _can_ migrate away. But if we're talking about win98, it probably still actually has a pretty big user base, and most of the machines that run it probably really cannot upgrade.

Quoted 10 lines

For exactly the same reason you mention:

"Users who need vintage features can use vintage kernels."

ie you end up having people who have vintage hardware, and they use vintage kernels, but in their case, the "vintage" is Win95 or Win98. That does't mean that the _linux_ machine they use is necessarily vintage.

Linus

Correct call. SMBFS is also very stable and well tested.

Jeff

#14 lore raw
In reply to Linus Torvalds
Quoted 5 lines · Linus Torvalds

The cost of keeping a filesystem is not normally very high. The way
filesystems in particular get deprecated is if they have really serious problems, and nobody ends up being able or willing to fix them at all, and you _can_ migrate away.

That's the case with smbfs and cifs, soon.

Quoted 3 lines

But if we're talking about win98, it probably
still actually has a pretty big user base, and most of the machines that run it probably really cannot upgrade.

cifs doesn't support w98 and w95 properly yet. Steve's working on it, and we hope to have that in place for 2.6.18.

So at this stage, 2.6.18 still appears to be a good time to start pushing people toward cifs, and December looks like an appropriate time to mark smbfs as broken. Subject to, of course, feedback-from-the-field.

author
#15 lore raw
Quoted 3 lines · Andrew Morton

So at this stage, 2.6.18 still appears to be a good time to start pushing people toward cifs, and December looks like an appropriate time to mark smbfs as broken. Subject to, of course, feedback-from-the-field.

I'm surprised that other vendors are actually still shipping it[1]. (Not only that, some vendors have actually been sitting on smbfs
patches for well over a year).

Given that it's clearly abandoned, moving to cifs seems to be the only sensible thing to do, and anything that can be done to ease that transition should be done.

Dave

[1] Especially after the recent security problem where smbfs stayed vulnerable for a week or so after CIFS got fixed. How many bad guys thought "Hmm, wonder if smbfs has the same bug" in that week?

Signature · 1 line
http://www.codemonkey.org.uk
#17 lore raw
Quoted 6 lines
Quoted 6 lines

Why drag around old worn out baggage in new kernels?

If we follow this logic, then.

"LKML == Wikipedia"

"Your contributions can be reverted and removed at any time by any editor."

So why contribute in the first place?

Leave smbfs. The author worked his butt off and contributed to Linux with some very useful technology, and leave his name in contributors.

Jeff

#18 lore raw
In reply to John Kelly
Quoted 1 line · John Kelly

W98? He's dead, Jim.

Agreed - Win 98 and Me support stops on July 11. If even Microsoft stops supporting it...

#19 lore raw
Quoted 5 lines · grundig

El Fri, 12 May 2006 12:19:18 -0400,
John Kelly <[email protected]> escribió:

Quoted 7 lines
Quoted 3 lines

W98? He's dead, Jim.

Agreed - Win 98 and Me support stops on July 11. If even Microsoft stops supporting it...

... then people runs more linux in order to get our superior support. ;-)

Helge Hafting

#20 lore raw
In reply to a message not in the archive
Quoted 13 lines · On 5/11/06, [email protected] <[email protected]> wrote:

The patch titled

deprecate smbfs in favour of cifs

has been added to the -mm tree. Its filename is

deprecate-smbfs-in-favour-of-cifs.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this

Quoted 7 lines

From: Andrew Morton <[email protected]>

smbfs is a bit buggy and has no maintainer. Change it to shout at the user on the first five mount attempts - tell them to switch to CIFS.

Come November we'll mark it BROKEN and see what happens.

[snip]

Perhaps an addition to Documentation/feature-removal-schedule.txt is also in order?

Something noting that it will be marked as broken in November and go away some 12 - 18 months after that perhaps?

Signature · 3 lines
Jesper Juhl <[email protected]>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html
#21 lore raw
Quoted 20 lines · Jesper Juhl
Quoted 18 lines · On 5/11/06, [email protected] <[email protected]> wrote:

The patch titled

deprecate smbfs in favour of cifs

has been added to the -mm tree. Its filename is

deprecate-smbfs-in-favour-of-cifs.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this

From: Andrew Morton <[email protected]>

smbfs is a bit buggy and has no maintainer. Change it to shout at the user on the first five mount attempts - tell them to switch to CIFS.

Quoted 6 lines
Quoted 2 lines

Come November we'll mark it BROKEN and see what happens.

[snip]

Perhaps an addition to Documentation/feature-removal-schedule.txt is also in order?

That seems a bit duplicative, so I didn't bother.

Quoted 2 lines

Something noting that it will be marked as broken in November and go away some 12 - 18 months after that perhaps?

We'll see. We'd like to remove it as early as poss, of course. But right now, I don't know when that'll be.

The personal challenge is to remove it before Greg gets his devfs-removal patches in ;)

#22 lore raw
Quoted 5 lines · Andrew Morton

We'll see. We'd like to remove it as early as poss, of course. But right now, I don't know when that'll be.

The personal challenge is to remove it before Greg gets his devfs-removal patches in ;)

I read there might be a bugfix release. A garbage removal release would help too. Then it would be easier to see the bugs.