Re: Computer not shutting down
Re: Computer not shutting down
- Subject: Re: Computer not shutting down
- From: "mm w" <email@hidden>
- Date: Thu, 24 Jul 2008 10:32:39 -0700
Hi Greg, maybe if you could describe a bit your mechanism,
you could have a right answer and some leads
for a example why do you need the "type" of a VNODE,
- do you receive a userspace file event?
you 're only describing a small window,
On Thu, Jul 24, 2008 at 9:41 AM, Greg <email@hidden> wrote:
>
> On Jul 24, 2008, at 1:16 AM, Terry Lambert wrote:
>
>> The command is "showallstacks". It won't exist unless you load the
>> "kgmacros" package into gdb
>
> Ah, thank you, and I apologize for not remembering that one. I've been
> going down a TODO list for my project and this one brought me back to the
> kernel side of it, something that I hadn't touched in a while...
>
>> The function is not provided for that purpose; the original purpose of the
>> function being provided was to allow a mount point relookup and verification
>> by vnode pointer for network file system clients to support mount -u. It is
>> also internally used to obtain a vnode pointer that is held persistently for
>> a long time when implementing shadow directories for support extended
>> attributes on file systems that do not support them natively.
>>
>> In general, if you search the mailing list archives, you are going to find
>> a large number of posts explaining why kernel level file I/O is an
>> incredibly bad idea. Most of the related posts will tell you how to better
>> do what it is you are trying to do.
>
> All I'm using it for is to determine whether a given path represents a
> directory or not, after which I immediately dispose of the vnode_t. This
> code runs infrequently as well, so hopefully this shouldn't be a "bad" use
> of the vnode API?
>
> - Greg
> _______________________________________________
> 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
>
--
-mmw
_______________________________________________
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