Fuse Ls Reading Directory . Input/output Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings input/output error linux and policies of this site About Us Learn more about Stack Overflow
Fuse Bad Mount Point Input/output Error
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up fuse readdir returns Input/output error up vote 4 down vote favorite I am seeing a strange issue while implementing the readdir() functionality in fuse. Basically when I do 'ls' on any directory in fuse, I get an error such as: ls ls: reading directory .: Input/output error file1.c file2.c But the strange thing is, readdir is doing exactly what it is supposed to do. In the sense that in that particular directory, I have two files named 'file1.c' and 'file2.c' and it is able to read it correctly. While debugging the issue I noticed that fuse 'filler' function ('fuse_fill_dir_t' passed as an argument to readdir() ) is what may be causing this error. This is because if I simply print the contents of the directory using a debug printf without returning the contents using the filler function, I do not see the error. But as soon as I start using the filler function to return the contents, I start seeing this error. I have two questions related to this: 1) Anybody have any idea as to why the filler function might be causing this problem? 2) How do I look for the definition of the code for the fuse_fill_dir_t function? I have looked through most of the fuse functions with that kind of arguments but have had no luck until now. Any help is appreciated! Cheers, Vinay filesystems fuse share|improve this question ask
instructions: Windows Mac Red Hat Linux Ubuntu Click URL instructions: Right-click on ad, choose "Copy Link", then paste here → (This may not be possible with some types of ads) More information about our ad policies X You seem to have CSS turned off. Please don't fill out this field. You seem to have CSS turned off. Please don't fill out this field. Briefly describe the problem (required): Upload screenshot of ad (required): Select a file, or drag & drop file here. ✔ ✘ Please provide the ad click URL, if possible: Home Browse Filesystem in Userspace Mailing Lists Filesystem in Userspace Brought to you by: dzsekijo, mszeredi, nikratio Summary Files Reviews Support Mailing Lists fuse-commits fuse-devel fuse-sshfs Re: [fuse-devel] http://stackoverflow.com/questions/6692601/fuse-readdir-returns-input-output-error mysterious Input/output error Re: [fuse-devel] mysterious Input/output error From: Miklos Szeredi
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About http://unix.stackexchange.com/questions/39905/input-output-error-when-accessing-a-directory Us Learn more about Stack Overflow the company Business Learn more about hiring developers https://groups.google.com/d/topic/mogile/6OIWjqEcrf4 or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a input/output error question Anybody can answer The best answers are voted up and rise to the top “Input/output error” when accessing a directory up vote 39 down vote favorite 9 I want to list and remove the content of a directory on a removable hard drive. But I have experienced "Input/output error": $ rm pic -R rm: cannot remove `pic/60.jpg': Input/output error rm: cannot remove `pic/006.jpg': Input/output error rm: cannot remove fuse ls reading `pic/008.jpg': Input/output error rm: cannot remove `pic/011.jpg': Input/output error $ ls -la pic ls: cannot access pic/60.jpg: Input/output error -????????? ? ? ? ? ? 006.jpg -????????? ? ? ? ? ? 006.jpg -????????? ? ? ? ? ? 011.jpg I was wondering what the problem is? How can I recover or remove the directory pic and all of its content? My OS is Ubuntu 12.04, and the removable hard drive has ntfs filesystem. Other directories not containing or inside pic on the removable hard drive are working fine. Added: Last part of output of dmesg after I tried to list the content of the directory: [19000.712070] usb 1-1: new high-speed USB device number 2 using ehci_hcd [19000.853167] usb-storage 1-1:1.0: Quirks match for vid 05e3 pid 0702: 520 [19000.853195] scsi5 : usb-storage 1-1:1.0 [19001.856687] scsi 5:0:0:0: Direct-Access ST316002 1A 0811 PQ: 0 ANSI: 0 [19001.858821] sd 5:0:0:0: Attached scsi generic sg2 type 0 [19001.861733] sd 5:0:0:0: [sdb] 312581808 512-byte logical blocks: (160 GB/149 GiB) [19001.862969] sd 5:0:0:0: [sdb] Test WP failed, assume Write Enabled [19001.865223] sd 5:0:0:0: [sdb] Cache data unavailable [19001.865232] sd 5:0:0:0: [sdb] Assuming drive cache: write through [19001.867597] sd 5:0:0:0: [sdb] Test WP failed, assume Write Enabled [19001.869214] sd 5:0:0:
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen