Go to the FreeLists Home Page Home Signup Help Login
 



[openbeosstorage] || [Date Prev] [06-2003 Date Index] [Date Next] || [Thread Prev] [06-2003 Thread Index] [Thread Next]

[openbeosstorage] Re: My Usual Confusion

  • From: "Ingo Weinhold" <bonefish@xxxxxxxxxxxxxxx>
  • To: openbeosstorage@xxxxxxxxxxxxx
  • Date: Sat, 14 Jun 2003 17:03:40 +0200 CEST
On Sat, 14 Jun 2003 15:35:53 +0200 CEST "Axel Dörfler" <axeld@pinc-
software.de> wrote:
> "Ingo Weinhold" <bonefish@xxxxxxxxxxxxxxx> wrote:
> > > What about leaving ContentType() to what it is now and change 
> > > Type() 
> > > so that you can use the partition type in a switch case statement 
> > > like:
> > > ...
> > What your switch statement does can easily be done using 
> > BPartition::IsPartitionable(), which (unless I'm mistaken -- I 
> > remember, we discussed that) returns whether the partition's disk 
> > system is a partitioning system.
> 
> Sure, but the basic idea was to be able to use switch() for this 
> thing 
> - but since we only have two different types (AFAICT), it really 
> doesn't matter to have something like this.
> Anyway, I would expect BPartition::Type() to return something like 
> this, but I would also be fine if it returned the information 
> ContentType() returns right now.

Regarding being able to switch() the types listed in <DiskDeviceType.h>
, I remember vaguely, that we more or less agreed, that this shouldn't 
be necessary in practice. Moreover a uint32 representation works well 
for known types, but has a problem with unknown types. A string can 
easily report something like "unrecognized type (0x93)", though.

CU, Ingo






[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.