VirtualBox

Changeset 38943 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Oct 5, 2011 1:51:28 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74309
Message:

Additions/solaris/SharedFolders: mmap related clarifications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_vnode.c

    r38922 r38943  
    15511551                if (error != 0)
    15521552                {
    1553                         cmn_err(CE_WARN, "sffs_readpages: sfprov_read() failed. error=%d bytes=%ld\n", error, bytes);
     1553                        cmn_err(CE_WARN, "sffs_readpages: sfprov_read() failed. error=%d bytes=%u\n", error, bytes);
    15541554                        /* Get rid of all kluster pages read & bail.  */
    1555                         pvn_read_done(ppages,  B_ERROR);
     1555                        pvn_read_done(ppages, B_ERROR);
    15561556                        return (error);
    15571557                }
     
    17001700{
    17011701        /*
    1702          * We don't support PROT_WRITE mmaps. Just pretend we're done writing back
    1703          * to the disk while unmounting/closing the node and discarding the mapped pages.
     1702         * This would not get invoked i.e. via pvn_vplist_dirty() since we don't support
     1703         * PROT_WRITE mmaps and therefore will not have dirty pages.
    17041704         */
    17051705        pvn_write_done(ppage, B_INVAL | B_ERROR | B_FORCE);
     
    18091809        )
    18101810{
    1811         sfnode_t *node = VN2SFN(dvp);
    1812         uint64_t npages = btopr(len);
    1813 
    18141811        if (dvp->v_flag & VNOMAP)
    18151812                return (ENOSYS);
    1816 
    1817         ASSERT(node);
    18181813        return (0);
    18191814}
     
    18371832        )
    18381833{
    1839         sfnode_t *node = VN2SFN(dvp);
    1840         uint64_t npages = btopr(len);
    1841 
    18421834        if (dvp->v_flag & VNOMAP)
    18431835                return (ENOSYS);
    1844 
    18451836        return (0);
    18461837}
     
    20262017                /* We're fine with releasing the vnode lock here as we should be covered by the sffs_lock */
    20272018                mutex_exit(&vp->v_lock);
     2019                /* We won't have any dirty pages, this will just invalidate (destroy) the pages and move it to the cachelist. */
    20282020                pvn_vplist_dirty(vp, 0 /* offset */, sffs_discardpage, B_INVAL, cr);
    20292021                mutex_enter(&vp->v_lock);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette