Re: EXPORT_SYMBOL(fat_get_block)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Greg KH
Date: Friday, August 13, 2010 - 5:25 pm

On Fri, Aug 13, 2010 at 04:22:13PM -0700, David Cross wrote:

No, I mean numbers before and after with and without this "hack".


That's a stream, not mmap.  What's wrong with mmap?  That should provide
what you are looking for here, right?


I would be interested in finding out what the problem was here.


Wee, contrived user interaction senarios, I can do that too!

What happens if the user wants to download a file, and stream a 3g viop
call at the same time he is running to catch that airport shuttle and is
trying to listen to the navigation guides which is reading the gps chip
stream and guiding him to the nearest bus stop?  :)

Sorry, this isn't a valid thing to be arguing at this point in time.
Hacks like this in places you shouldn't be doing things, are not
allowed.


You can't rely on that flag, sorry, it doesn't work with real-world
devices.

And I have removable media right here, that shipped to me formatted as
NTFS, so that is a valid model today.


Wait, step 4 is a big jump.  Userspace should be reading that data, and
then writing it back out to a file it opened, not this "dma directly to
media" stuff.

And yes, you can stream it if you want from userspace to the file if
that's faster, but odds are mmap() will work best here.


Yes, you don't know what is backing that filesystem, that's the big
issue, just as you don't know what type of filesystem it is, from within
the kernel.

thanks,

greg k-h
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
EXPORT_SYMBOL(fat_get_block), David Cross, (Fri Aug 13, 10:45 am)
Re: EXPORT_SYMBOL(fat_get_block), Greg KH, (Fri Aug 13, 10:54 am)
Re: EXPORT_SYMBOL(fat_get_block), Greg KH, (Fri Aug 13, 10:54 am)
Re: EXPORT_SYMBOL(fat_get_block), David Cross, (Fri Aug 13, 11:43 am)
Re: EXPORT_SYMBOL(fat_get_block), Christoph Hellwig, (Fri Aug 13, 11:50 am)
Re: EXPORT_SYMBOL(fat_get_block), Greg KH, (Fri Aug 13, 12:01 pm)
Re: EXPORT_SYMBOL(fat_get_block), David Cross, (Fri Aug 13, 12:06 pm)
Re: EXPORT_SYMBOL(fat_get_block), David Cross, (Fri Aug 13, 12:17 pm)
Re: EXPORT_SYMBOL(fat_get_block), Greg KH, (Fri Aug 13, 12:28 pm)
Re: EXPORT_SYMBOL(fat_get_block), David Cross, (Fri Aug 13, 1:32 pm)
Re: EXPORT_SYMBOL(fat_get_block), Greg KH, (Fri Aug 13, 3:17 pm)
Re: EXPORT_SYMBOL(fat_get_block), David Cross, (Fri Aug 13, 4:22 pm)
Re: EXPORT_SYMBOL(fat_get_block), Greg KH, (Fri Aug 13, 5:25 pm)
Re: EXPORT_SYMBOL(fat_get_block), David Cross, (Fri Aug 13, 6:12 pm)
Re: EXPORT_SYMBOL(fat_get_block), Greg KH, (Fri Aug 13, 8:04 pm)
RE: EXPORT_SYMBOL(fat_get_block), Nelson Zhang, (Sun Aug 15, 3:57 pm)
Re: EXPORT_SYMBOL(fat_get_block), Greg KH, (Tue Aug 17, 7:54 am)
Re: EXPORT_SYMBOL(fat_get_block), Christoph Hellwig, (Tue Aug 17, 8:40 am)
Re: EXPORT_SYMBOL(fat_get_block), Greg KH, (Tue Aug 17, 8:54 am)