VirtualBox

Changeset 33763 in vbox


Ignore:
Timestamp:
Nov 4, 2010 12:48:36 PM (14 years ago)
Author:
vboxsync
Message:

VBoxService/Cat: Don't index files on creation.

File:
1 edited

Legend:

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

    r33422 r33763  
    140140
    141141     int rc = VINF_SUCCESS;
    142      //bool fSeenInput = false;
    143142     RTFILE hInput = NIL_RTFILE;
    144143     RTFILE hOutput = NIL_RTFILE;
     
    152151             case 'o':
    153152                 rc = RTFileOpen(&hOutput, ValueUnion.psz,
    154                                  RTFILE_O_CREATE_REPLACE | RTFILE_O_READWRITE | RTFILE_O_DENY_WRITE);
     153                                 RTFILE_O_CREATE_REPLACE |
     154                                 RTFILE_O_NOT_CONTENT_INDEXED | /* We don't need indexing here. */
     155                                 RTFILE_O_WRITE |
     156                                 RTFILE_O_DENY_WRITE);
    155157                 if (RT_FAILURE(rc))
    156158                     VBoxServiceError("Cat: Could not create output file \"%s\"! rc=%Rrc\n",
     
    161163             case VINF_GETOPT_NOT_OPTION:
    162164             {
    163                  /*rc = VBoxServiceToolboxCatInput(ValueUnion.psz, hOutput);
    164                  if (RT_SUCCESS(rc))
    165                      fSeenInput = true;*/
    166 
    167165                 rc = RTFileOpen(&hInput, ValueUnion.psz,
    168166                                 RTFILE_O_READ | RTFILE_O_OPEN | RTFILE_O_DENY_WRITE);
     
    178176     }
    179177
    180      if (RT_SUCCESS(rc) /*&& !fSeenInput*/)
     178     if (RT_SUCCESS(rc))
    181179         rc  = VBoxServiceToolboxCatOutput(hInput, hOutput);
    182180
Note: See TracChangeset for help on using the changeset viewer.

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