Lines Matching refs:oldfcb
463 static NTSTATUS duplicate_fcb(fcb* oldfcb, fcb** pfcb) { in duplicate_fcb() argument
464 device_extension* Vcb = oldfcb->Vcb; in duplicate_fcb()
479 fcb->Header.AllocationSize = oldfcb->Header.AllocationSize; in duplicate_fcb()
480 fcb->Header.FileSize = oldfcb->Header.FileSize; in duplicate_fcb()
481 fcb->Header.ValidDataLength = oldfcb->Header.ValidDataLength; in duplicate_fcb()
483 fcb->type = oldfcb->type; in duplicate_fcb()
485 if (oldfcb->ads) { in duplicate_fcb()
487 fcb->adshash = oldfcb->adshash; in duplicate_fcb()
488 fcb->adsmaxlen = oldfcb->adsmaxlen; in duplicate_fcb()
490 if (oldfcb->adsxattr.Buffer && oldfcb->adsxattr.Length > 0) { in duplicate_fcb()
491 fcb->adsxattr.Length = oldfcb->adsxattr.Length; in duplicate_fcb()
501 RtlCopyMemory(fcb->adsxattr.Buffer, oldfcb->adsxattr.Buffer, fcb->adsxattr.Length); in duplicate_fcb()
505 if (oldfcb->adsdata.Buffer && oldfcb->adsdata.Length > 0) { in duplicate_fcb()
506 fcb->adsdata.Length = fcb->adsdata.MaximumLength = oldfcb->adsdata.Length; in duplicate_fcb()
515 RtlCopyMemory(fcb->adsdata.Buffer, oldfcb->adsdata.Buffer, fcb->adsdata.Length); in duplicate_fcb()
521 RtlCopyMemory(&fcb->inode_item, &oldfcb->inode_item, sizeof(INODE_ITEM)); in duplicate_fcb()
524 if (oldfcb->sd && RtlLengthSecurityDescriptor(oldfcb->sd) > 0) { in duplicate_fcb()
525 … fcb->sd = ExAllocatePoolWithTag(PagedPool, RtlLengthSecurityDescriptor(oldfcb->sd), ALLOC_TAG); in duplicate_fcb()
532 RtlCopyMemory(fcb->sd, oldfcb->sd, RtlLengthSecurityDescriptor(oldfcb->sd)); in duplicate_fcb()
535 fcb->atts = oldfcb->atts; in duplicate_fcb()
537 le = oldfcb->extents.Flink; in duplicate_fcb()
538 while (le != &oldfcb->extents) { in duplicate_fcb()
588 le = oldfcb->hardlinks.Flink; in duplicate_fcb()
589 while (le != &oldfcb->hardlinks) { in duplicate_fcb()
633 if (oldfcb->reparse_xattr.Buffer && oldfcb->reparse_xattr.Length > 0) { in duplicate_fcb()
634 fcb->reparse_xattr.Length = fcb->reparse_xattr.MaximumLength = oldfcb->reparse_xattr.Length; in duplicate_fcb()
643 … RtlCopyMemory(fcb->reparse_xattr.Buffer, oldfcb->reparse_xattr.Buffer, fcb->reparse_xattr.Length); in duplicate_fcb()
646 if (oldfcb->ea_xattr.Buffer && oldfcb->ea_xattr.Length > 0) { in duplicate_fcb()
647 fcb->ea_xattr.Length = fcb->ea_xattr.MaximumLength = oldfcb->ea_xattr.Length; in duplicate_fcb()
656 RtlCopyMemory(fcb->ea_xattr.Buffer, oldfcb->ea_xattr.Buffer, fcb->ea_xattr.Length); in duplicate_fcb()
659 fcb->prop_compression = oldfcb->prop_compression; in duplicate_fcb()
661 le = oldfcb->xattrs.Flink; in duplicate_fcb()
662 while (le != &oldfcb->xattrs) { in duplicate_fcb()