smbfs_io.c (82b8b189596f04f8b2560efaef2328d8dcfbc42d) smbfs_io.c (a8d43c90af5122ecff75b55fbaf6d5806674411b)
1/*
2 * Copyright (c) 2000-2001, Boris Popov
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 580 unchanged lines hidden (view full) ---

589 int error;
590 struct vnode *vp = ap->a_vp;
591 struct thread *td;
592 struct ucred *cred;
593
594#ifdef SMBFS_RWGENERIC
595 td = curthread; /* XXX */
596 cred = td->td_ucred; /* XXX */
1/*
2 * Copyright (c) 2000-2001, Boris Popov
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 580 unchanged lines hidden (view full) ---

589 int error;
590 struct vnode *vp = ap->a_vp;
591 struct thread *td;
592 struct ucred *cred;
593
594#ifdef SMBFS_RWGENERIC
595 td = curthread; /* XXX */
596 cred = td->td_ucred; /* XXX */
597 VOP_OPEN(vp, FWRITE, cred, td);
597 VOP_OPEN(vp, FWRITE, cred, td, -1);
598 error = vop_stdputpages(ap);
599 VOP_CLOSE(vp, FWRITE, cred, td);
600 return error;
601#else
602 struct uio uio;
603 struct iovec iov;
604 vm_offset_t kva;
605 struct buf *bp;
606 int i, npages, count;
607 int *rtvals;
608 struct smbmount *smp;
609 struct smbnode *np;
610 struct smb_cred scred;
611 vm_page_t *pages;
612
613 td = curthread; /* XXX */
614 cred = td->td_ucred; /* XXX */
598 error = vop_stdputpages(ap);
599 VOP_CLOSE(vp, FWRITE, cred, td);
600 return error;
601#else
602 struct uio uio;
603 struct iovec iov;
604 vm_offset_t kva;
605 struct buf *bp;
606 int i, npages, count;
607 int *rtvals;
608 struct smbmount *smp;
609 struct smbnode *np;
610 struct smb_cred scred;
611 vm_page_t *pages;
612
613 td = curthread; /* XXX */
614 cred = td->td_ucred; /* XXX */
615/* VOP_OPEN(vp, FWRITE, cred, td);*/
615/* VOP_OPEN(vp, FWRITE, cred, td, -1);*/
616 np = VTOSMB(vp);
617 smp = VFSTOSMBFS(vp->v_mount);
618 pages = ap->a_m;
619 count = ap->a_count;
620 rtvals = ap->a_rtvals;
621 npages = btoc(count);
622
623 for (i = 0; i < npages; i++) {

--- 99 unchanged lines hidden ---
616 np = VTOSMB(vp);
617 smp = VFSTOSMBFS(vp->v_mount);
618 pages = ap->a_m;
619 count = ap->a_count;
620 rtvals = ap->a_rtvals;
621 npages = btoc(count);
622
623 for (i = 0; i < npages; i++) {

--- 99 unchanged lines hidden ---