Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: [netbsd-5] src/sys/fs/udf



On Wed, 18 Mar 2009, Soren Jacobsen wrote:
> Modified Files:
>       src/sys/fs/udf [netbsd-5]: udf_strat_direct.c
> udf_strat_sequential.c udf_vnops.c

The netbsd5 branch currently doesn't build for me without the attached 
patch.

cheers
mark
Index: udf_vnops.c
===================================================================
RCS file: /src/cvs/netbsd/src/sys/fs/udf/udf_vnops.c,v
retrieving revision 1.30.4.4
diff -u -r1.30.4.4 udf_vnops.c
--- udf_vnops.c 18 Mar 2009 05:08:38 -0000      1.30.4.4
+++ udf_vnops.c 18 Mar 2009 11:51:16 -0000
@@ -279,8 +279,9 @@
        struct file_entry    *fe;
        struct extfile_entry *efe;
        void *win;
-       uint64_t file_size, old_size;
+       uint64_t file_size, old_size, old_offset;
        vsize_t len;
+       int async = vp->v_mount->mnt_flag & MNT_ASYNC;
        int error;
        int flags, resid, extended;
 
@@ -342,6 +343,7 @@
        error = 0;
 
        uvm_vnp_setwritesize(vp, file_size);
+       old_offset = uio->uio_offset;
        while (uio->uio_resid > 0) {
                /* maximise length to file extremity */
                len = MIN(file_size - uio->uio_offset, uio->uio_resid);


Home | Main Index | Thread Index | Old Index