|
From: Vasanth R. <vra...@nc...> - 2011-05-07 13:18:31
|
Hello, So I am trying to create a read only file system in FUSE,which "reads" a file system structure from an archived file, and mounts different sub-directories and files. I have written the code for readdir and getattr so far. I am able to now view my sub directories and files from my mountpoint. Yet , everytime I do an "ls" from within the mountpoint , I get the following error : *ls: reading directory .: Input/output error* What is this error ? Any pointers ? I am attaching my dump below : FUSE library version: 2.8.4 nullpath_ok: 0 unique: 1, opcode: INIT (26), nodeid: 0, insize: 56 INIT: 7.14 flags=0x0000007b max_readahead=0x00020000 INIT: 7.12 flags=0x00000011 max_readahead=0x00020000 max_write=0x00020000 unique: 1, success, outsize: 40 unique: 2, opcode: OPENDIR (27), nodeid: 1, insize: 48 unique: 2, success, outsize: 32 unique: 3, opcode: LOOKUP (1), nodeid: 1, insize: 47 LOOKUP /.Trash getattr /.Trash NODEID: 2 unique: 3, success, outsize: 144 unique: 4, opcode: LOOKUP (1), nodeid: 2, insize: 45 LOOKUP /.Trash/1000 getattr /.Trash/1000 NODEID: 3 unique: 4, success, outsize: 144 unique: 5, opcode: LOOKUP (1), nodeid: 3, insize: 46 LOOKUP /.Trash/1000/files getattr /.Trash/1000/files NODEID: 4 unique: 5, success, outsize: 144 unique: 6, opcode: OPENDIR (27), nodeid: 4, insize: 48 unique: 6, success, outsize: 32 unique: 7, opcode: READDIR (28), nodeid: 4, insize: 80 readdir[0] from 0 ash/.Trash/1000/files Entry not found unique: 8, opcode: LOOKUP (1), nodeid: 1, insize: 45 LOOKUP /BDMV getattr /BDMV NODEID: 5 unique: 8, success, outsize: 144 unique: 9, opcode: LOOKUP (1), nodeid: 5, insize: 45 LOOKUP /BDMV/META getattr /BDMV/META NODEID: 6 unique: 9, success, outsize: 144 unique: 10, opcode: LOOKUP (1), nodeid: 1, insize: 57 LOOKUP /.xdg-volume-info getattr /.xdg-volume-info NODEID: 7 unique: 10, success, outsize: 144 unique: 11, opcode: OPENDIR (27), nodeid: 7, insize: 48 unique: 11, success, outsize: 32 unique: 12, opcode: RELEASEDIR (29), nodeid: 7, insize: 64 unique: 12, success, outsize: 16 unique: 13, opcode: LOOKUP (1), nodeid: 1, insize: 52 LOOKUP /autorun.inf getattr /autorun.inf NODEID: 8 unique: 13, success, outsize: 144 unique: 14, opcode: READDIR (28), nodeid: 1, insize: 80 readdir[0] from 0 ash / rootname is file1 / rootname is prt / unique: 15, opcode: LOOKUP (1), nodeid: 6, insize: 43 LOOKUP /BDMV/META/DL getattr /BDMV/META/DL NODEID: 9 unique: 15, success, outsize: 144 unique: 16, opcode: LOOKUP (1), nodeid: 9, insize: 53 LOOKUP /BDMV/META/DL/bdmt_eng.xml getattr /BDMV/META/DL/bdmt_eng.xml NODEID: 10 unique: 16, success, outsize: 144 unique: 17, opcode: OPENDIR (27), nodeid: 10, insize: 48 unique: 17, success, outsize: 32 unique: 18, opcode: RELEASEDIR (29), nodeid: 10, insize: 64 unique: 18, success, outsize: 16 unique: 7, success, outsize: 16 unique: 14, success, outsize: 168 unique: 19, opcode: RELEASEDIR (29), nodeid: 4, insize: 64 unique: 20, opcode: READDIR (28), nodeid: 1, insize: 80 unique: 20, success, outsize: 40 unique: 19, success, outsize: 16 unique: 21, opcode: LOOKUP (1), nodeid: 1, insize: 52 LOOKUP /.Trash-1000 getattr /.Trash-1000 NODEID: 11 unique: 21, success, outsize: 144 unique: 22, opcode: LOOKUP (1), nodeid: 1, insize: 46 LOOKUP /file1 getattr /file1 NODEID: 12 unique: 22, success, outsize: 144 unique: 23, opcode: LOOKUP (1), nodeid: 11, insize: 46 LOOKUP /.Trash-1000/files getattr /.Trash-1000/files NODEID: 13 unique: 23, success, outsize: 144 unique: 24, opcode: LOOKUP (1), nodeid: 1, insize: 44 LOOKUP /prt unique: 25, opcode: OPENDIR (27), nodeid: 13, insize: 48 unique: 25, success, outsize: 32 getattr /prt unique: 26, opcode: READDIR (28), nodeid: 13, insize: 80 readdir[0] from 0 NODEID: 14 rootname is ash/.Trash-1000/files unique: 24, success, outsize: 144 Entry not found unique: 27, opcode: READDIR (28), nodeid: 1, insize: 80 unique: 27, success, outsize: 40 unique: 28, opcode: RELEASEDIR (29), nodeid: 1, insize: 64 unique: 28, success, outsize: 16 unique: 29, opcode: OPENDIR (27), nodeid: 1, insize: 48 unique: 29, success, outsize: 32 unique: 30, opcode: READDIR (28), nodeid: 1, insize: 80 readdir[0] from 0 ash / getattr /BDMV/META NODEID: 6 unique: 9, success, outsize: 144 unique: 10, opcode: LOOKUP (1), nodeid: 1, insize: 57 LOOKUP /.xdg-volume-info getattr /.xdg-volume-info NODEID: 7 unique: 10, success, outsize: 144 unique: 11, opcode: OPENDIR (27), nodeid: 7, insize: 48 unique: 11, success, outsize: 32 unique: 12, opcode: RELEASEDIR (29), nodeid: 7, insize: 64 unique: 12, success, outsize: 16 unique: 13, opcode: LOOKUP (1), nodeid: 1, insize: 52 LOOKUP /autorun.inf getattr /autorun.inf NODEID: 8 unique: 13, success, outsize: 144 unique: 14, opcode: READDIR (28), nodeid: 1, insize: 80 readdir[0] from 0 ash / rootname is file1 / rootname is prt / unique: 15, opcode: LOOKUP (1), nodeid: 6, insize: 43 LOOKUP /BDMV/META/DL getattr /BDMV/META/DL NODEID: 9 unique: 15, success, outsize: 144 unique: 16, opcode: LOOKUP (1), nodeid: 9, insize: 53 LOOKUP /BDMV/META/DL/bdmt_eng.xml getattr /BDMV/META/DL/bdmt_eng.xml NODEID: 10 unique: 16, success, outsize: 144 unique: 17, opcode: OPENDIR (27), nodeid: 10, insize: 48 unique: 17, success, outsize: 32 unique: 18, opcode: RELEASEDIR (29), nodeid: 10, insize: 64 unique: 18, success, outsize: 16 unique: 7, success, outsize: 16 unique: 14, success, outsize: 168 unique: 19, opcode: RELEASEDIR (29), nodeid: 4, insize: 64 unique: 20, opcode: READDIR (28), nodeid: 1, insize: 80 unique: 20, success, outsize: 40 unique: 19, success, outsize: 16 unique: 21, opcode: LOOKUP (1), nodeid: 1, insize: 52 LOOKUP /.Trash-1000 getattr /.Trash-1000 NODEID: 11 unique: 21, success, outsize: 144 unique: 22, opcode: LOOKUP (1), nodeid: 1, insize: 46 LOOKUP /file1 getattr /file1 NODEID: 12 unique: 22, success, outsize: 144 unique: 23, opcode: LOOKUP (1), nodeid: 11, insize: 46 LOOKUP /.Trash-1000/files getattr /.Trash-1000/files NODEID: 13 unique: 23, success, outsize: 144 unique: 24, opcode: LOOKUP (1), nodeid: 1, insize: 44 LOOKUP /prt unique: 25, opcode: OPENDIR (27), nodeid: 13, insize: 48 .... Thanks a lot in advance, Vas |