Re: My Usual Confusion

"Axel Dörfler" <[email protected]>
Newsgroups gmane.os.openbeos.storage
Message-ID <3869920611-BeMail@nichtsnutz>
"Ingo Weinhold" <bonefish-CFLBMwTPW48UNGrzBIF7/[email protected]> 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.

> > BTW is there any way to get to a partition without a disk system 
> > object at all? If so, GetDiskSystem() would not only be useful, I 
> > think.
> Mmh, maybe I misunderstand you, but a BDiskSystem is not necessary to 
> get a BPartition. The only we to get a BPartition is via 
> BDiskDeviceRoster. I think, GetDiskSystem() is not only useful, but 
> even necessary. Since how, otherwise, would one get the responsible 
> disk system otherwise? The partition's type can't be translated to a 
> disk system name, I believe.

That's what I meant, and then, I agree with you; we should have that 
method.

Adios...
   Axel.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.