PRE_WRITE_MST_FIXUP

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

pre_write_mst_fixup - apply multi sector transfer protection  

SYNOPSIS

"SYNOPSIS"

int pre_write_mst_fixup (NTFS_RECORD * b, const u32 size);  

ARGUMENTS

b
pointer to the data to protect
size
size in bytes of b
 

DESCRIPTION

Perform the necessary pre write multi sector transfer fixup on the data pointer to by b of size.

Return 0 if fixup applied (success) or -EINVAL if no fixup was performed (assumed not needed). This is in contrast to post_read_mst_fixup above.  

NOTE

We consider the absence / invalidity of an update sequence array to mean that the structure is not subject to protection and hence doesn't need to be fixed up. This means that you have to create a valid update sequence array header in the ntfs record before calling this function, otherwise it will fail (the header needs to contain the position of the update sequence array together with the number of elements in the array). You also need to initialise the update sequence number before calling this function otherwise a random word will be used (whatever was in the record at that position at that time).


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
NOTE

This document was created by man2html, using the manual pages.
Time: 04:41:01 GMT, October 06, 2005