Fix os_bmfs_file_query bug