• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: About partition scheme.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About partition scheme.


  • Subject: Re: About partition scheme.
  • From: Flost Li <email@hidden>
  • Date: Mon, 09 Jul 2012 11:05:09 +0800



2012/7/6 Phil Jordan <email@hidden>
On Thu, Jul 5, 2012 at 4:25 AM, Flost.D.Li <email@hidden> wrote:
>> The driver matches on the special partition type with the GUID, in
>> this case, disk2s2, and creates a "whole" IOMedia object, in this case
>> disk3.
>
> [Flost] so the disk3 was generated by disk2s2.

The provider for my driver is the IOMedia for disk2s2 (it actually can
and usually does have more than one provider, but that's irrelevant
here), and the IOMedia nub my driver generates is disk3.

> Can you control the inter activation with disk2s2?

What do you mean by that?
 
[Flost]: consider that if  i would like to use disk2s2 to do some encrypt read/write. In your example, if the client operate with disk3, than you could encrypt/decrypt the data read/written, but if some read/write through disk2s2, it could only get the raw data,
Isn't it?
What I'd like to do is that I should make sure that people could not read/write through disk2s2, than no one could read the raw data.
 

>> https://developer.apple.com/library/mac/#documentation/Darwin/Conceptual/KEXTConcept/KEXTConceptDebugger/debug_tutorial.html
> [Flost]: Yes, I'd read this document before, but last time when i have two machine to study this, I find that only the system got panic, than the debug machine could connect to the test machine, and show the stack, but this does not make much help than I use the panic file to decode the stack.
> May be I could read the article more carefully. Also, I will reference the following article to learn about firewire kprintf.

You can do most things that you can do with user-space gdb. You might
also want to look at all the macros in kgmacros. Some of those are
extremely useful.

If you want to force your code to break to the debugger (e.g. in your
own replacement for assert()), use
__asm__("int $3");

(at least on i386/x86-64)

phil

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: About partition scheme.
      • From: Phil Jordan <email@hidden>
References: 
 >About partition scheme. (From: "Li Flost.Dexiong" <email@hidden>)
 >Re: About partition scheme. (From: Phil Jordan <email@hidden>)
 >Re: About partition scheme. (From: "Li Flost.Dexiong" <email@hidden>)
 >Re: About partition scheme. (From: Phil Jordan <email@hidden>)
 >Re: About partition scheme. (From: "Li Flost.Dexiong" <email@hidden>)
 >Re: About partition scheme. (From: Phil Jordan <email@hidden>)
 >Re: About partition scheme. (From: "Flost.D.Li" <email@hidden>)
 >Re: About partition scheme. (From: Phil Jordan <email@hidden>)

  • Prev by Date: Re: About partition scheme.
  • Next by Date: Re: About partition scheme.
  • Previous by thread: Re: About partition scheme.
  • Next by thread: Re: About partition scheme.
  • Index(es):
    • Date
    • Thread