On Tue, 12 Aug 2008, Al Viro wrote:Btw, this whole sentence, and the one from your next email seems to really show a fundamental misunderstanding of the whole readdir() error handling: We *must* handle partial returns by returning "success". And we do, except for our _confusion_ about ->readdir() returning error and that somehow "overriding" the fact that it already returned non-errors earlier through the callback. All your blathering about "positive values as well" seems to ttoally misunderstand how readdir() works. We absolutely do *not* need positive return values, because the fact is, the only positive return value we ever need is the "we already filled _earlier_ buffers". And that's the one that we already do. The fact is, NO ERROR VALUE CAN POSSIBLY MATTER if we already returned one or more entries to getdents/readdir(). We should return a success value. Linus --
| Greg KH | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Andrew Morton | Re: 2.6.23-rc6-mm1 |
| Luciano Rocha | usb hdd problems with 2.6.27.2 |
git: | |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | [PATCH take 2] pkt_sched: Protect gen estimators under est_lock. |
