qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Help needed -- vvfat.c
@ 2011-09-15 12:49 Pintu Kumar
  2011-09-19 14:37 ` Kevin Wolf
  0 siblings, 1 reply; 3+ messages in thread
From: Pintu Kumar @ 2011-09-15 12:49 UTC (permalink / raw)
  To: qemu-devel

Hi,

This is regarding qemu block/vvfat.c.

Currently vvfat scans all directories and sub-directories in the
beginning during init_directories().

I want to modify vvfat such that it should scan only the TOP directory
content and not the sub-directory content before mounting.
And after mounting vvfat I should be able to dynamically get the TOP
directory content when I do "ls -l" on that directory.
How can I do that?

I tried skipping sub-directory in read_directory() as follows.
                else if(S_ISDIR(st.st_mode))
                {
                        LOGD("Skipping sub-directory : %s\n", buffer);
                        s->current_mapping=NULL;
                        continue;
                }
After that the sub-directories are visible after mounting and part1 is working.
But after mounting when I do "ls -l" on vvfat mounted path, on any
directory, vvfat_read() is not getting called.

Somebody who knows about vvfat implementation please let me know where
is the problem.

Please help !.



Thanks, Regards,
Pintu Kumar

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-09-23 10:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-15 12:49 [Qemu-devel] Help needed -- vvfat.c Pintu Kumar
2011-09-19 14:37 ` Kevin Wolf
2011-09-23 10:30   ` Pintu Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).