VMDK not attached to the VM size?

I'm trying to get a list of VMDK on a store of data and their associated file size, so I can attach them to a virtual machine in a workflow.  I slightly modified the getAllVmdkFile action to return a hash with filename size = properties.  However, the size of the VcFileInfo object is null.  How can I get the size of a given VMDK file name or how can I do to make the VcFileInfo object has populated size property?

Code:

meh = new Properties();
var fileQuery = new Array(new VcVmDiskFileQuery());
var querySpec = new VcHostDatastoreBrowserSearchSpec();
querySpec.query = fileQuery;


System.log("searching: " + u_datastore.name);
var task = u_datastore.browser.searchDatastoreSubFolders_Task("[" + u_datastore.name + "]", querySpec);
var searchResults = System.getModule("com.vmware.library.vc.basic").vim3WaitTaskEnd(task,false,5);


for (var i in searchResults) {
  for (var j in searchResults[i].file) {
  System.log("found " + searchResults[i].folderPath + searchResults[i].file[j].path);
  System.log("size: " + searchResults[i].file[j].fileSize);
// meh.put(searchResults[i].folderPath + searchResults[i].file[j].path, searchResults[i].file[j].fileSize);
  meh.put(searchResults[i].folderPath + searchResults[i].file[j].path, 0);
  }
}





Well, it seems that setting all flags to 'true' done the tour and return file sizes are much more realistic.

var queryFlags = new VcFileQueryFlags();
queryFlags.fileOwner = true;
queryFlags.fileSize = true;
queryFlags.modification = true;
queryFlags.fileType = true;
querySpec.details = queryFlags;

Don't know why it behave this way, but it seems to work

Tags: VMware

Similar Questions

  • Toolbar not attached to the workspace

    The toolbar is not attached to the workspace... Please see the attached picture.  I was playing around in the preferences, and I can't figure out what I did... Help, please... Thank you...2015-08-30_13-52-03.jpg

    Go to window > workspace > reset workspace.

  • Bar does not appear correctly the relative size of ScrollBar

    I'm not sure of the right terminology please bear with me. In CS4 when I Zoom in on an image, the bar downstairs would show the size of the image now on the screen compared to the size. know if I pass the bar from 50 percent to 100 percent would be half that size indicating that I see only half the picture. At least, I think that was the case in CS4.

    Here's and example of CS6.

    1. Open an image, choose 'Command-0' to make it fill the window, and the percentage of 48,16%. The bar downstairs is not there, but if it was I suppose that he would fill the width of the window.
    2. I select "command-+ ' to zoom in, and the percentage increased to 50%. The bar fills now about 30% of the width of window indicating I zoomed in a lot, but I did not. There is only a little image on each side not visible, the rest is a huge grey area that extends from left to right and top to bottom.

    How do the bar indicates the true amount of zoom, and how do I get rid of this grey area?

    I wonder if you have enabled in cs6 Application Framework?

    Window > Application frame.

    I believe in cs4 and cs5, that part of the application is not on by default, but in cs6 is.

  • Image will not print to the designated size

    I have the following:

    CS4 (nine)

    Windows 7 (64-bit)

    New HP office jet 8500 wireless

    Problem: I have complete a picture. The image size is set to 8.5 x 11 in. Preview print poster picture fill paper. Image is configured to print at 100%.

    When I Press PRINT, I receive a paper with a small image in the upper left corner. The image size is what impressions (I just measure) 2 7/8 x 3 5/8 inches.

    I hope that there is something very simple, I do not.  The IMAGE SIZE is reduced to 8.5 x 11 inches. When I click on PRINT, I chose to print at 100%. I get a small image on paper.

    In this case no matter what I print. 8 x 10 photo look tiny in the upper left corner.

    Any suggestions? THANKS for any help.

    NOTE: All other programs work correctly in regards to printing goes. Photoshop just for that.

    If it has been failing to the fax printer, get rid of the fax printer (you can brig back if necessary) and see if that fixes it.

    Paulo

  • Photoshop - canvas does not open to the specified size.

    When I try to add a canvas around an image, after entering the size I want it opens to a different size that I have specified. In addition, shift/command/c does not work.

    I think you want Opt + Cmd + C to

  • Stylesheet not attached to the model Pages

    I recently change my password for my site... do not know if my question and password change are involved or just a coincidence? Now, my pages of models have lost the style sheet. They work correctly on the internet but do not have a style sheet attached when I open in Dreamweaver CS4. Whenever I open a page there is no attached style sheet. How can I fix? Thank you!

    FTP password change is not the effect of style sheets.   Something is wrong.

    Code Validation tools

    ------------------------------------

    CSS - http://jigsaw.w3.org/css-validator/

    HTML - http://validator.w3.org/

    Nancy O.

    ALT-Web Design & Publishing

    Web | Graphics | Print | Media specialists

    http://ALT-Web.com/

    http://Twitter.com/ALTWEB

    http://ALT-Web.blogspot.com/

  • PXI-6509 does not attach to the ribbon cable screw

    My threaded spacers on the connector of the PXI - 6509 100 i/o pins are not compatible with screwdowns that come with all the cables R1005050 Ribbon: either end threading is too large or the ribbon cable clamping thread is too small.  In any case, I can not connect it and wonder if it's vital for the current performance of ground or the shielding of the reasons?  I received my material in the calendar from June-August 2008, if it's important.

    Fluffums-

    Thanks for posting your question on the forums of NOR. It is not necessary to have your clamping of cables connected to the pins of the PXI-6509. The screwdowns are mainly here to make sure that your cable is connected to your device. Currently, I don't have my cable fixed in my PCI due to the fact that I'm constantly change hardware autour. I hope this helps.

  • How to overcome a problem reading with a snippet that requires the closure of LR & is NOT attached to the reboot?

    I use a MacBook Pro with OS 10.11.3 & Lightroom 6 (2015) independent (i.e. NOT CC). At the launch of LR, I get the following message: "Lightroom has encountered an error when reading the preview cache and need to quit." + statement that LR will try to solve the problem during restart. On reboot, the problem is NOT resolved, resulting in a program that is not usable.

    I uninstalled and reinstalled, same results.

    All answers there? How can I contact Adobe?

    Morrie

    Hello Morrie,

    If please check the following link and let me know if it helps: 'Lightroom encountered and error while reading its preview cache and needs to stop smoking'

    Kind regards

    Tanuj

  • Not scanned image the same size as the original

    Scanned images of a doc of legal size seem to be reproduced on images of legal size. When printing, the print space is 60% or the printed page, while the original doc was so full page. Any thoughts on how to fix this?

    The default action is to just scan the document in without letting you look at your scan settings. I would say "the Interface of the Native Scanner see the" setting under "Custom Scan".  File > create a PDF from a Scanner > custom scan

    Click on the radio button to select "native interface of the scanner Show", then OK to confirm.

    When you click Scan in custom scan, you can then preview, set the size and then analyze using your own scanner software.

  • User interface of Photoshop do not adjust to the correct size on my laptop

    The user interface when you use Photoshop seems to be zoomed in or upward scaling Photoshop making it extremely difficult to use.

    I've included a screenshot below of my laptop which is 14 inches at 1920 x 1080.

    All other programs I have installed work perfectly but as you can see from the images below, Photoshop is simply unusable.

    Does anyone have a solution to this, I can't find anything online?

    Screenshot (48).png

    Screenshot (47).png

    Try setting the user interface of the scale to 100% in Photoshop preferences:

  • Export of pictures not of the same size as file Photos

    Try to export files to then import into Photoshop elements 15. I exported "original not modified", but the file size is about 50 GB when my photo file is about 80 GB. What did I miss? Thank you

    Your photo library is larger than the handset sizes original in your library pictures because pictures take the edited versions previews and thumbnails as well. There are also masks for brushed settings or thumbnails of scanned faces.

    To see if you got all the original ctrl - click on your photo library, use "Show Package Contents", look at the size of the folder "masters".  It is roughly the size of the folder with the exported originals?

  • 2.5 AppVolumes second appstack does not show in the BONE

    I have appvolumes deployed, and I created an appstack which has 3 possibilities of use in successfully (chrome, adobe reader and Notepad ++) for testing. I have this set on a non-persistent desktop with the AppVolumes agent installed and it works well. I went back to my VM capture and restored the snapshot, created a new appstack and installed firefox. After completing the capture process, I joined the new appstack to the same VM/user as the original appstack. The new appstack shows no firefox in the virtual machine. It seems that the new appstack VMDK is attached to the virtual machine, but I do not see a shortcut of firefox on the desktop, it does not appear in the program files either. Initially I thought that maybe it had something to do with having mulitple disks attached to the windows 7 x 64 VM. I thought maybe it was a problem of storage controller, but it seems that by default LSI logic SAS controller should take up to 15 HARD drives. This is where my day is over, but I'll be back tomorrow to take a look more, suggestions are welcome.

    Figured it out. We still had the trial installed, license which by default only allows to 1 appstack reach, by user, at the same time. We have installed the real license and it does not work as expected.

  • HP Pavilion 6835: HP pavilion 6835 Office off the market not connected to the motherboard. Where does it connect?

    The switch turned off-lit is disconnected and is not attached to the motherboard.  Where it connect?

    Hi again aebw,

    Thank you for providing your information!

    According to the Specifications of the product for your desktop computer, the chassis power cables connect to the motherboard along the extreme low Panel shown in the figure below:

    Front connectors can be applied using this schema:

    And this is the type of connector represented by the figures above:

    1. keyboard lock

    2. LED message

    3. outdoor cable of SMI

    4. speaker connector

    5. ATX power switch

    6. Drive LED

    7. reset switch

    8. power indicator

    You want to make sure that the 'GROUND' chassis connector is plugged #5 and "PWRLED" is plugged #8.

    I hope this helps!

    Best regards

  • The font size for all that continues to change.

    The size of police applications, toolbars, icons, menus, bars, all of a sudden has very low after an interruption of the screen black/secession, which lasted less than a minute.  Same thing happened a few weeks ago except that everything was very grand.  What is happening and how I can fix this?  I can hardly read anything right now and I found last time that I cold not to change the font size in many cases.

    Check your display card drivers... Click Start-> settings-> Control Panel-> system-> hardware-> Device Manager. Also check that you have yellow exclamation marks next to the display adapter.

  • View not strong in the photoshop "print format" cc on pc

    View not strong in the "print size", but ok to any other magnification. Photoshop on PC cc

    You have to realize what you watching a smarting down image is not your pixels of images.  Your screen most likely also has a low resolution the you must print you print different pixels there are more pixels, and they will be a higher resolution than the screen pixels. You need to do a test print to see how well sharpened, the image printed on the print size.  View all print's size display am image the size of the printing will be.  If you have set your preferences Photoshop display to the screen resolution resolution has. If you have several screens and they have a different resolution that you must have the image on the screen that matches the resolution of the screen, you set in your Photoshop preferences for the display resolution. If you do not set the correct resolution that post you a Photoshop will scale your image to a different size than the print size.

Maybe you are looking for

  • Audit of Apple Popup with old email ID

    I've updated my email in my Apple account, but I still get the Popup box 'Check' the Apple ID asking a password & it lists the old email address.  In the settings on my phone, it still shows my old email even if I received the confirmation from Apple

  • Moving from my old iMac 27 "to a new

    What is the best method to move all my setting, applications and files from my old iMac 27 "to my new iMac 27"? Thank you Amnon

  • HP officejet 7210

    I got this copier/fax for years and has always worked very well. A week ago when I went to make a copy... Copier screen said "warm up", but never prints. I tried to unplug and reset, but still not to copy... it continues to print emails from computer

  • 0x0000009C (0 x 000000004, 0x80546E70, 0xB2000000, 0x00070F0F)

    After the computer is idling for 1-2 hours, I get a blue screen with this error code:0x0000009C (0 x 000000004, 0x80546E70, 0xB2000000, 0x00070F0F). And if I restart the computer the screen turns white and the devices stop responding, but I see that

  • BIOS HP Compaq Elite (i5-2400 CPU) 8280 cannot set the VT option

    BIOS HP Compaq Elite (i5-2400 CPU) 8280 cannot set the VT option