enlisting in a transacation based on opening the file and querying...

Hello all,

If my mini-filter opens a file in read only mode, can it find out if
the file is part of a transaction? And more importantly can I enlist
in that ongoing transaction based on simply opening the file and
sending some kind of ioctl to it.

I did find FSCTL_TXFS_GET_METADATA_INFO and it looks promissing,
however I need to do all of this in a mini-filter, and the
FSCTL_TXFS_GET_METADATA_INFO talks about GUID of a transaction. I
assume the minifilter can somehow enlist in the transaction based on
the information returned by this ioctl.

Am I on the correct path here?

Thanks in advance as usual.

you’re right: just send “FSCTL_TXFS_GET_METADATA_INFO” IOCTL from
kernel-mode and check for TXFS_GET_METADATA_INFO_OUT.LockingTransaction - if
the file is in a transaction, there will be a guid of this transaction

-pk

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kamran Tavakoli
Sent: 4. listopadu 2008 21:47
To: Windows File Systems Devs Interest List
Subject: [ntfsd] enlisting in a transacation based on opening the file and
querying…

Hello all,

If my mini-filter opens a file in read only mode, can it find out if
the file is part of a transaction? And more importantly can I enlist
in that ongoing transaction based on simply opening the file and
sending some kind of ioctl to it.

I did find FSCTL_TXFS_GET_METADATA_INFO and it looks promissing,
however I need to do all of this in a mini-filter, and the
FSCTL_TXFS_GET_METADATA_INFO talks about GUID of a transaction. I
assume the minifilter can somehow enlist in the transaction based on
the information returned by this ioctl.

Am I on the correct path here?

Thanks in advance as usual.


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@avast.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Thanks Petr,

How do I enlist in the transaction using this guid? I cannot find any
filter manager related info on this…?

thanks.

On Tue, Nov 4, 2008 at 7:01 PM, Petr Kurtin wrote:
> you’re right: just send “FSCTL_TXFS_GET_METADATA_INFO” IOCTL from
> kernel-mode and check for TXFS_GET_METADATA_INFO_OUT.LockingTransaction - if
> the file is in a transaction, there will be a guid of this transaction
>
> -pk
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Kamran Tavakoli
> Sent: 4. listopadu 2008 21:47
> To: Windows File Systems Devs Interest List
> Subject: [ntfsd] enlisting in a transacation based on opening the file and
> querying…
>
> Hello all,
>
> If my mini-filter opens a file in read only mode, can it find out if
> the file is part of a transaction? And more importantly can I enlist
> in that ongoing transaction based on simply opening the file and
> sending some kind of ioctl to it.
>
> I did find FSCTL_TXFS_GET_METADATA_INFO and it looks promissing,
> however I need to do all of this in a mini-filter, and the
> FSCTL_TXFS_GET_METADATA_INFO talks about GUID of a transaction. I
> assume the minifilter can somehow enlist in the transaction based on
> the information returned by this ioctl.
>
> Am I on the correct path here?
>
> Thanks in advance as usual.
>
> —
> NTFSD is sponsored by OSR
>
> For our schedule debugging and file system seminars
> (including our new fs mini-filter seminar) visit:
> http://www.osr.com/seminars
>
> You are currently subscribed to ntfsd as: xxxxx@avast.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> NTFSD is sponsored by OSR
>
> For our schedule debugging and file system seminars
> (including our new fs mini-filter seminar) visit:
> http://www.osr.com/seminars
>
> You are currently subscribed to ntfsd as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>