VirtualBox

Ignore:
Timestamp:
Feb 1, 2019 7:00:23 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128597
Message:

linux/vboxsf: More read code tweaking, making the max read/write buffer size configurable (mount option maxiopages). Also added code for dealing with the host running out of heap. bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp

    r76553 r77138  
    391391        "\0",                  /* nls_name */
    392392        NULL,                  /* convertcp */
     393        0,                     /* cMaxIoPages */
    393394    };
    394395
     
    437438        mntinf.dmask = Opts.dmask;
    438439        mntinf.fmask = Opts.fmask;
     440        mntinf.cMaxIoPages = Opts.cMaxIoPages;
    439441        mntinf.tag[0] = '\0';
    440442
     
    14771479    MntInfo.dmask        = MntOpts.dmask = 0000;
    14781480    MntInfo.fmask        = MntOpts.fmask = 0000;
     1481    MntInfo.cMaxIoPages  = MntOpts.cMaxIoPages = 0 /*default*/;
    14791482    memcpy(MntInfo.tag, g_szTag, sizeof(g_szTag)); AssertCompile(sizeof(MntInfo.tag) >= sizeof(g_szTag));
    14801483    rc = RTStrCopy(MntInfo.name, sizeof(MntInfo.name), pEntry->pszName);
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