[Win32utils-devel] question about changejournal
phasis at nownuri.net
Thu Dec 22 06:46:02 EST 2005
----- Original Message -----
From: "Berger, Daniel" <Daniel.Berger at qwest.com>
To: "Development and ideas for win32utils projects"
<win32utils-devel at rubyforge.org>
Sent: Thursday, December 22, 2005 2:48 AM
Subject: Re: [Win32utils-devel] question about changejournal
>> -----Original Message-----
>> From: win32utils-devel-bounces at rubyforge.org
>> [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of
>> Berger, Daniel
>> Sent: Wednesday, December 21, 2005 10:34 AM
>> To: Development and ideas for win32utils projects
>> Subject: Re: [Win32utils-devel] question about changejournal
>> > -----Original Message-----
>> > From: win32utils-devel-bounces at rubyforge.org
>> > [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of
>> > Berger, Daniel
>> > Sent: Wednesday, December 21, 2005 10:07 AM
>> > To: Development and ideas for win32utils projects
>> > Subject: Re: [Win32utils-devel] question about changejournal
>> > > a) info.file_name isn't the full path--is there a way to
>> tell what
>> > > directory it is in? E.g. after getting the event, I'd like to go
>> > > read in the file.
>> > It's not possible for you currently to get the full path name
>> > atm. I'm not sure if it's possible at all based on the
>> > USN_RECORD docs, but I'll try one or two things. Heesob, if
>> > you have any ideas on this, I'm listening.
>> I tried experimenting with GetFullPathName() on the file
>> within get_file_action (in changejournal.h), but that only
>> seems to return the current directory as the base, instead of
>> the actual path.
>> Any ideas?
> Hm, I did find this article:
> I won't have time to implement this until next year. Heesob, go ahead
> and commit any patches if you know how to handle this. I'll be on
> vacation starting tomorrow and coming back December 29th.
> PS - Hm...I seem to recall this topic coming up before for some reason.
> Am I forgetting something?
I did find this article a long time ago:
"As we mentioned last month, there is no easy way to take an FRN and convert
it to a full path. If you want to do this, your applications must keep an
internal database of all directories (not all files) on a volume and their
FRNs. (Yes, this is a lot of extra code you'll have to write, but we'll
explain the benefit of doing this at the end of this section.) It is up to
you to implement the database functionality. We'll show you how to populate
the database, use it to get the full path from a journal record, and how to
keep it up to date while your application is running. "
I know what to do. I have the working C source code. Only I need is some
free time to port it.
Dan, I'll try to implement it until your coming back :)
I wish you have good vacations!
More information about the win32utils-devel