BFS: Use separate name & pretty name for big-endian

Change-Id: I7e3a99e3cff35ae5f8cd84fa7243579bf93de904
Reviewed-on: https://review.haiku-os.org/644
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
François Revol 2018-10-27 01:38:05 +02:00 committed by waddlesplash
parent 2522f69ee9
commit 5d558f271c

View File

@ -26,6 +26,14 @@
#define BFS_IO_SIZE 65536 #define BFS_IO_SIZE 65536
#if defined(BFS_LITTLE_ENDIAN_ONLY)
#define BFS_ENDIAN_SUFFIX ""
#define BFS_ENDIAN_PRETTY_SUFFIX ""
#else
#define BFS_ENDIAN_SUFFIX "_big"
#define BFS_ENDIAN_PRETTY_SUFFIX " (Big Endian)"
#endif
struct identify_cookie { struct identify_cookie {
disk_super_block super_block; disk_super_block super_block;
@ -2500,13 +2508,13 @@ fs_vnode_ops gBFSVnodeOps = {
static file_system_module_info sBeFileSystem = { static file_system_module_info sBeFileSystem = {
{ {
"file_systems/bfs" B_CURRENT_FS_API_VERSION, "file_systems/bfs" BFS_ENDIAN_SUFFIX B_CURRENT_FS_API_VERSION,
0, 0,
bfs_std_ops, bfs_std_ops,
}, },
"bfs", // short_name "bfs" BFS_ENDIAN_SUFFIX, // short_name
"Be File System", // pretty_name "Be File System" BFS_ENDIAN_PRETTY_SUFFIX, // pretty_name
// DDM flags // DDM flags
0 0