* vfs_boot.cpp now also exports gReadOnlyBootDevice which is true when the

boot device is actually read-only (even if it's using the write overlay).
* Do not create a swap file on a read-only device - this would really be a
  stupid use of the write overlay (just saw this happening on an older
  machine).
* Made swap_file_{add|delete}() take a const char* path - there was no reason
  this was writable, and this also avoids casting away the const when adding
  the default swap file.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30975 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-06-05 15:52:58 +00:00
parent bfd4c59b63
commit 477a4ca70e
3 changed files with 48 additions and 31 deletions
+2 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2005, Axel Dörfler, [email protected]. All rights reserved.
* Copyright 2005-2009, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License.
*/
#ifndef _KERNEL_BOOT_DEVICE_H
@@ -10,6 +10,7 @@
extern dev_t gBootDevice;
extern bool gReadOnlyBootDevice;
// defined in fs/vfs_boot.cpp
#endif /* _KERNEL_BOOT_DEVICE_H */