Moving to -devel.

On 11/4/07, Adam Megacz <[EMAIL PROTECTED]> wrote:
>
>
> "Derrick Brashear" <[EMAIL PROTECTED]> writes:
> > in my source that's
> >     vnode->dataVersion = 1;
> > (on line 257)
> >
> > What's it in yours?
>
> Same.


Able to try this (with gcc 4.12 or whatever)?

--- volprocs.c  30 Oct 2007 15:24:12 -0000      1.34.2.10
+++ src/vol/volprocs.c  4 Nov 2007 04:57:08 -0000
@@ -203,14 +203,14 @@
     struct acl_accessList *ACL;
     ViceFid did;
     Inode inodeNumber, nearInode;
-    char buf[SIZEOF_LARGEDISKVNODE];
-    struct VnodeDiskObject *vnode = (struct VnodeDiskObject *)buf;
+    /*char buf[SIZEOF_LARGEDISKVNODE];*/
+    struct VnodeDiskObject *vnode/* = (struct VnodeDiskObject *)buf*/;
     struct VnodeClassInfo *vcp = &VnodeClassInfo[vLarge];
     IHandle_t *h;
     FdHandle_t *fdP;
     int code;
     afs_fsize_t length;
-
+    vnode = (struct VnodeDiskObject *)malloc(SIZEOF_LARGEDISKVNODE);
     memset(vnode, 0, SIZEOF_LARGEDISKVNODE);

     V_pref(vp, nearInode);
@@ -274,7 +274,7 @@
     IH_RELEASE(h);
     VNDISK_GET_LEN(length, vnode);
     V_diskused(vp) = nBlocks(length);
-
+    free(vnode);
     return 1;
 }

Reply via email to