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
This commit is contained in:
@@ -16,7 +16,8 @@
|
|||||||
|
|
||||||
// prototypes
|
// prototypes
|
||||||
static status_t read_block(int fd, off_t offset, size_t size, uchar **block);
|
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
|
// 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
|
static
|
||||||
bool
|
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;
|
bool result = false;
|
||||||
TRACE(("fs/bfs: identify(%d, %p, offset: %lld)\n", deviceFD, partitionInfo,
|
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_short_name, "bfs");
|
||||||
strcpy(partitionInfo->file_system_long_name, "Be File System");
|
strcpy(partitionInfo->file_system_long_name, "Be File System");
|
||||||
strcpy(partitionInfo->volume_name, superBlock->name);
|
strcpy(partitionInfo->volume_name, superBlock->name);
|
||||||
strcpy(partitionInfo->mounted_at, "???");
|
|
||||||
result = true;
|
result = true;
|
||||||
|
if (priority)
|
||||||
|
*priority = 0;
|
||||||
}
|
}
|
||||||
free(buffer);
|
free(buffer);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user