{"issue":{"milestone":null,"user":{"id":297244,"login":"lloydw","url":"https://api.github.com/users/lloydw","avatar_url":"https://secure.gravatar.com/avatar/36bee5bf8d3a9fad7d3c0a12330e9fd9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"36bee5bf8d3a9fad7d3c0a12330e9fd9"},"created_at":"2011-12-06T03:06:35Z","title":"large files have unknown size and can't be read","updated_at":"2011-12-17T09:22:32Z","labels":[],"state":"open","id":2458070,"html_url":"https://github.com/glandium/vmfs-tools/issues/3","closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"Hi There,\r\n\r\nI'm using VMFS-FUSE (direct from github) to mount a VMFS 5 volume (5.54 according to VMware) over iscsi.\r\n\r\nFor some reason the large files (vmdks) can't be read and seem to have an unknown size:\r\n'''\r\ndrwxr-xr-x  2 root root     1400 2011-11-04 10:03 .\r\ndrwxr-xr-t 10 root root     2240 2011-11-15 11:28 ..\r\n-?????????  ? ?    ?           ?                ? ns1-flat.vmdk\r\n-rw-------  1 root root     8684 2011-11-04 10:04 ns1.nvram\r\n-rw-------  1 root root      609 2011-11-04 10:05 ns1.vmdk\r\n-rw-r--r--  1 root root        0 2011-11-01 13:15 ns1.vmsd\r\n-rwxr-xr-x  1 root root     3071 2011-11-04 10:04 ns1.vmx\r\n-rw-r--r--  1 root root      258 2011-11-01 13:15 ns1.vmxf\r\n-rw-r--r--  1 root root    73176 2011-11-04 10:14 vmware.log\r\n-rw-------  1 root root 59768832 2011-11-04 10:03 vmx-ns1-1992708965-1.vswp\r\n'''\r\n\r\nIf I try output the inode information I get nothing, however displaying other file info works fine:\r\n'''\r\nroot@Ubuntu:/mnt/ns1# debugvmfs /dev/sdc1 show 'inode[\"ns1/ns1-flat.vmdk\"]'\r\nroot@Ubuntu:/mnt/ns1# debugvmfs /dev/sdc1 show 'inode[\"ns1/ns1.vmdk\"]'\r\n         ID: 0x5808a44\r\n        ID2: 0x19\r\n      Links: 1\r\n       Type: 3\r\n      Flags: 0\r\n       Size: 609\r\n Block size: 8 KiB\r\nBlock count: 0\r\n        UID: 0\r\n        GID: 0\r\n       Mode: 0600 (-rw-------)\r\n        ZLA: 4305\r\n        TBZ: 0\r\n        COW: 0\r\nAccess Time: 2011-11-04 10:05:17\r\nModify Time: 2011-11-04 10:05:17\r\nChange Time: 2011-11-01 13:29:22\r\n     RDM ID: 0x0\r\n'''\r\n\r\nI then thought maybe it was because the VM was still running (I'm mounting a snapshot), so tried looking at another VM that was powered off and that worked, but wasn't conclusive as I then tried a 3rd VM that was powered off, but when I tried to ls the folder it displayed a completely different VMs folder.\r\n\r\n'''\r\nroot@Ubuntu:/mnt# cd delila-debian/\r\nroot@Ubuntu:/mnt/delila-debian# ls\r\nls: cannot access ns1-flat.vmdk: No such file or directory\r\nns1-flat.vmdk  ns1.vmdk  ns1.vmsd  ns1.vmx  ns1.vmxf  vmx-ns1-1992708965-1.vswp\r\n'''\r\n(As you can see its displaying ns1's folder instead of delila-debian)\r\n\r\nI then tried a 4th vm (delila) and doing an ls in that folder started printing the contents of the vmx file, instead of the directory.\r\n\r\nMore dumps\r\n'''\r\nroot@Ubuntu:/mnt# debugvmfs /dev/sdc1 show 'inode[\"delila-debian\"]'\r\n         ID: 0x24c08a44\r\n        ID2: 0xaf\r\n      Links: 2\r\n       Type: 2\r\n      Flags: 0\r\n       Size: 1.09 KiB\r\n Block size: 8 KiB\r\nBlock count: 1\r\n        UID: 0\r\n        GID: 0\r\n       Mode: 0755 (-rwxr-xr-x)\r\n        ZLA: 2\r\n        TBZ: 0\r\n        COW: 0\r\nAccess Time: 2011-11-15 11:18:48\r\nModify Time: 2011-11-15 11:18:48\r\nChange Time: 2011-11-15 11:18:48\r\n     RDM ID: 0x0\r\nroot@Ubuntu:/mnt# debugvmfs /dev/sdc1 show 'inode[\"delila\"]'\r\n         ID: 0x25008a44\r\n        ID2: 0xb0\r\n      Links: 2\r\n       Type: 2\r\n      Flags: 0\r\n       Size: 1.37 KiB\r\n Block size: 8 KiB\r\nBlock count: 1\r\n        UID: 0\r\n        GID: 0\r\n       Mode: 0755 (-rwxr-xr-x)\r\n        ZLA: 2\r\n        TBZ: 0\r\n        COW: 0\r\nAccess Time: 2011-11-15 11:41:21\r\nModify Time: 2011-11-15 11:41:21\r\nChange Time: 2011-11-15 11:41:21\r\n     RDM ID: 0x0\r\nroot@Ubuntu:/mnt# \r\n'''","number":3,"url":"https://api.github.com/repos/glandium/vmfs-tools/issues/3","comments":1,"assignee":null},"comment":{"user":{"id":1038527,"login":"glandium","url":"https://api.github.com/users/glandium","avatar_url":"https://secure.gravatar.com/avatar/2ec31e92486ccf56603da3f87ef297f1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"2ec31e92486ccf56603da3f87ef297f1"},"created_at":"2011-12-17T09:22:32Z","updated_at":"2011-12-17T09:22:32Z","id":3188511,"body":"Can you run the following commands and give the corresponding result?\r\n$ debugvmfs /dev/sdc1 show 'dirent[\"ns1/ns1-flat.vmdk\"]'\r\n$ debugvmfs /dev/sdc1 show 'blkid[dirent[\"ns1/ns1-flat.vmdk\"].blockid]'\r\n$ debugvmfs /dev/sdc1 show '(blkid[dirent[\"ns1/ns1-flat.vmdk\"].blockid].item)'\r\n$ debugvmfs /dev/sdc1 show '(blkid[dirent[\"ns1/ns1-flat.vmdk\"].blockid].item).dump'","url":"https://api.github.com/repos/glandium/vmfs-tools/issues/comments/3188511"},"action":"created"}