server: Rename the get_file_info function to get_fd_type and get rid of the flags.