Hi, We ran into a few problems trying to use file backed storage on 2.6. Attached is the patch file to the 1.9 version of the Linux 2.6 file_storage.c file, which makes the following changes:
- Fix the registration logic that was crashing the kernel. - Move the removable parameter to be used on non test version. - Remove the macro NORMALLY_INIT. This symbol is used to remove some functions in the no test version of the driver, but these functions are required for support removable luns (store_file, store_ro and open_backing_file). - The macro backing_file_is_open should be always defined to useful code (even in non test version) for support removable luns. I am not sure what criteria is used to determine if a feature should only be enabled only when test is selected. We have found that the removable LUNs logic works great. Todd
file_storage.patch
Description: Binary data
