* Added "partition_id partition" field to fs_volume, so that file

systems can get the partition they reside on easily.
* Updated TODO.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26401 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-07-13 12:47:08 +00:00
parent d903f7e019
commit 60f2ef17be
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -54,6 +54,7 @@ typedef struct fs_vnode_ops fs_vnode_ops;
struct fs_volume {
dev_t id;
partition_id partition;
int32 layer;
void* private_volume;
fs_volume_ops* ops;
+2 -1
View File
@@ -6284,7 +6284,7 @@ fs_mount(char *path, const char *device, const char *fsName, uint32 flags,
// Write lock the partition's device. For the time being, we keep the lock
// until we're done mounting -- not nice, but ensure, that no-one is
// interfering.
// TODO: Find a better solution.
// TODO: Just mark the partition busy while mounting!
KDiskDevice *diskDevice = NULL;
if (partition) {
diskDevice = ddm->WriteLockDevice(partition->Device()->ID());
@@ -6364,6 +6364,7 @@ fs_mount(char *path, const char *device, const char *fsName, uint32 flags,
mount->owns_file_device = false;
mount->volume->id = mount->id;
mount->volume->partition = partition != NULL ? partition->ID() : -1;
mount->volume->layer = 0;
mount->volume->private_volume = NULL;
mount->volume->ops = NULL;