From 27563d05751f9e2db8468b0755fba03a4bafcf2d Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 25 Dec 2002 15:16:31 +0000 Subject: [PATCH] Adjusted to return a priority. Removed a line setting the mounted_at field. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2300 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/disk_scanner/fs/bfs.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/add-ons/kernel/disk_scanner/fs/bfs.c b/src/add-ons/kernel/disk_scanner/fs/bfs.c index dc1fe4986c..11e6c413a6 100644 --- a/src/add-ons/kernel/disk_scanner/fs/bfs.c +++ b/src/add-ons/kernel/disk_scanner/fs/bfs.c @@ -16,7 +16,8 @@ // prototypes static status_t read_block(int fd, off_t offset, size_t size, uchar **block); -static bool bfs_fs_identify(int deviceFD, struct extended_partition_info *partitionInfo); +static bool bfs_fs_identify(int deviceFD, + struct extended_partition_info *partitionInfo, float *priority); //---------------------------------------------------------------------- // Stolen from src/add-ons/kernel/file_systems/bfs/bfs.h @@ -164,7 +165,8 @@ read_block(int fd, off_t offset, size_t size, uchar **block) */ static bool -bfs_fs_identify(int deviceFD, struct extended_partition_info *partitionInfo) +bfs_fs_identify(int deviceFD, struct extended_partition_info *partitionInfo, + float *priority) { bool result = false; TRACE(("fs/bfs: identify(%d, %p, offset: %lld)\n", deviceFD, partitionInfo, @@ -196,8 +198,9 @@ bfs_fs_identify(int deviceFD, struct extended_partition_info *partitionInfo) strcpy(partitionInfo->file_system_short_name, "bfs"); strcpy(partitionInfo->file_system_long_name, "Be File System"); strcpy(partitionInfo->volume_name, superBlock->name); - strcpy(partitionInfo->mounted_at, "???"); result = true; + if (priority) + *priority = 0; } free(buffer); }