History log of /haiku/headers/private/kernel/disk_device_manager/KDiskDeviceUtils.h
Revision Date Author Comments
# 4419d699 22-Dec-2016 Jessica Hamilton <jessica.l.hamilton@gmail.com>

partitioning: pass along reference to parent when uninitializing.

* Fixes problems with setting the partition name after uninitializing
a partition in DriveSetup. Previously, UninitializeJob() was
followed by SetStringJob(), but the kernel was updating the
change counter for the parent partition when uninitializing a
partition, leading to SetStringJob() having an incorrect change
counter for the parent partition. Now the parent change counter
will be correct when SetStringJob() runs.


# 758b1d0e 12-Nov-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
Otherwise the an inner class with that name is considered as friend.
gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 831841e1 30-Jan-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Moved generic autolocking code to <util/AutoLock.h>.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11158 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3f3f9cb6 27-Oct-2004 Ingo Weinhold <ingo_weinhold@gmx.de>

Added Unlock() (an nicer sounding alias for Unset()) and Detach() (the lock is kept when the object is destroyed) to AutoLocker.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9547 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 63c99af4 29-Sep-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Added Unset(). Also added some new classes that don't work yet and are uncommented for that reason.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4866 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f31cbc2d 03-Aug-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Added SetTo() methods to the AutoLocker.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4221 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a7ef3b56 01-Aug-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Added compare_string().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4184 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e37159e2 31-Jul-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Added min() and max() functions.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4173 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 621e29d0 08-Jul-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Added a DiskSystemLoader class.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3901 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 64cf9ebc 06-Jul-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Made PartitionRegistrar visible.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3881 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b8777f30 23-Jun-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added bool to the AutoLocker constructor indicating that the object
has already been locked. Defaults to false, of course.
* `Abused' the AutoLocker for partition registration/unregistration
(PartitionRegistrar).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3631 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0e2967f9 22-Jun-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Missing header.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3602 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7bb1e99c 10-Jun-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Pulled set_string() out of KPartition.cpp for it is useful also in other classes. Added a generic AutoLocker.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3458 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 758b1d0e05fe1042cce6e00d194a147802d4f9be 12-Nov-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
Otherwise the an inner class with that name is considered as friend.
gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 831841e1c08edf31144667af4c1022f497e4ec86 30-Jan-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Moved generic autolocking code to <util/AutoLock.h>.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11158 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3f3f9cb61a498deab9d17c603fd4520bb714c6e8 27-Oct-2004 Ingo Weinhold <ingo_weinhold@gmx.de>

Added Unlock() (an nicer sounding alias for Unset()) and Detach() (the lock is kept when the object is destroyed) to AutoLocker.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9547 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 63c99af405c72528401af6b86533d28644f9584e 29-Sep-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Added Unset(). Also added some new classes that don't work yet and are uncommented for that reason.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4866 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f31cbc2db649a1fa3119c330b84c2731bf63d778 03-Aug-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Added SetTo() methods to the AutoLocker.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4221 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a7ef3b5651477811d5b6b7a0e954ffbda6351d6d 01-Aug-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Added compare_string().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4184 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e37159e2dbec9d760045d61d0811dc5630f75952 31-Jul-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Added min() and max() functions.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4173 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 621e29d0b5ec2c547fa6e1445f8628a1bc544976 08-Jul-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Added a DiskSystemLoader class.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3901 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 64cf9ebc08d568dcefac0fccafcb0b4ac8e35f7a 06-Jul-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Made PartitionRegistrar visible.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3881 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b8777f30dc1c5578c3933bec623d61e298ff91ec 23-Jun-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added bool to the AutoLocker constructor indicating that the object
has already been locked. Defaults to false, of course.
* `Abused' the AutoLocker for partition registration/unregistration
(PartitionRegistrar).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3631 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0e2967f9d2d29727b5f5be68afd790f26b1455ba 22-Jun-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Missing header.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3602 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7bb1e99cb66c7543374c08db4979ebd65d311814 10-Jun-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Pulled set_string() out of KPartition.cpp for it is useful also in other classes. Added a generic AutoLocker.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3458 a95241bf-73f2-0310-859d-f6bbb57e9c96