* [miniPATCH] 2.5.4[4,5] AFS dir.c compile fix
@ 2002-10-31 13:43 Jan Marek
2002-10-31 13:52 ` Jan Marek
0 siblings, 1 reply; 2+ messages in thread
From: Jan Marek @ 2002-10-31 13:43 UTC (permalink / raw)
To: linux-kernel, Linus Torvalds
Hallo,
thist patch is needed for compile AFS with compiler gcc version prior
3.0. Have been accepted by Alan Cox in 2.5.44-ac3...
Please apply...
Sincerely
Jan Marek
--
Ing. Jan Marek
University of South Bohemia
Academic Computer Centre
Phone: +420-38-7772080
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [miniPATCH] 2.5.4[4,5] AFS dir.c compile fix
2002-10-31 13:43 [miniPATCH] 2.5.4[4,5] AFS dir.c compile fix Jan Marek
@ 2002-10-31 13:52 ` Jan Marek
0 siblings, 0 replies; 2+ messages in thread
From: Jan Marek @ 2002-10-31 13:52 UTC (permalink / raw)
To: linux-kernel, Linus Torvalds
[-- Attachment #1: Type: text/plain, Size: 383 bytes --]
Hallo,
On Thu, Oct 31, 2002 at 02:43:12PM +0100, Jan Marek wrote:
> Hallo,
>
> thist patch is needed for compile AFS with compiler gcc version prior
> 3.0. Have been accepted by Alan Cox in 2.5.44-ac3...
>
> Please apply...
:-( And here is patch... :-)
Sorry...
Sincerely
Jan Marek
--
Ing. Jan Marek
University of South Bohemia
Academic Computer Centre
Phone: +420-38-7772080
[-- Attachment #2: fs_afs_dirc.patch --]
[-- Type: text/plain, Size: 1142 bytes --]
--- linux-2.5.44/fs/afs/dir.c.old 2002-10-23 11:35:12.000000000 +0200
+++ linux-2.5.44/fs/afs/dir.c 2002-10-23 11:39:57.000000000 +0200
@@ -72,7 +72,7 @@
u8 name[16];
u8 overflow[4]; /* if any char of the name (inc NUL) reaches here, consume
* the next dirent too */
- };
+ } parts;
u8 extended_name[32];
} afs_dirent_t;
@@ -258,7 +258,7 @@
/* got a valid entry */
dire = &block->dirents[offset];
- nlen = strnlen(dire->name,sizeof(*block) - offset*sizeof(afs_dirent_t));
+ nlen = strnlen(dire->parts.name,sizeof(*block) - offset*sizeof(afs_dirent_t));
_debug("ENT[%u.%u]: %s %u \"%.*s\"\n",
blkoff/sizeof(afs_dir_block_t),offset,
@@ -290,11 +290,11 @@
/* found the next entry */
ret = filldir(cookie,
- dire->name,
+ dire->parts.name,
nlen,
blkoff + offset * sizeof(afs_dirent_t),
- ntohl(dire->vnode),
- filldir==afs_dir_lookup_filldir ? dire->unique : DT_UNKNOWN);
+ ntohl(dire->parts.vnode),
+ filldir==afs_dir_lookup_filldir ? dire->parts.unique : DT_UNKNOWN);
if (ret<0) {
_leave(" = 0 [full]");
return 0;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-31 13:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-31 13:43 [miniPATCH] 2.5.4[4,5] AFS dir.c compile fix Jan Marek
2002-10-31 13:52 ` Jan Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®