MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / Ext2ClearInode

Function Ext2ClearInode

Ext4Fsd/ext3/generic.c:537–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535
536
537BOOLEAN
538Ext2ClearInode (
539 IN PEXT2_IRP_CONTEXT IrpContext,
540 IN PEXT2_VCB Vcb,
541 IN ULONG Inode)
542{
543 LONGLONG Offset = 0;
544 BOOLEAN rc;
545
546 rc = Ext2GetInodeLba(Vcb, Inode, &Offset);
547 if (!rc) {
548 DEBUG(DL_ERR, ( "Ext2SaveInode: failed inode %u.\n", Inode));
549 goto errorout;
550 }
551
552 rc = Ext2ZeroBuffer(IrpContext, Vcb, Offset, Vcb->InodeSize);
553
554errorout:
555
556 return rc;
557}
558
559BOOLEAN
560Ext2SaveInode ( IN PEXT2_IRP_CONTEXT IrpContext,

Callers 1

Ext2CreateInodeFunction · 0.85

Calls 2

Ext2GetInodeLbaFunction · 0.85
Ext2ZeroBufferFunction · 0.85

Tested by

no test coverage detected