[Ocfs2-tools-devel] [PATCH 2/2] Libocfs2: Set dtime in ocfs2_delete_inode()
Sunil Mushran
sunil.mushran at oracle.com
Tue Mar 23 10:33:28 PDT 2010
di->i_dtime = cpu_to_le64(CURRENT_TIME.tv_sec);
di->i_flags &= cpu_to_le32(~(OCFS2_VALID_FL | OCFS2_ORPHANED_FL));
In the kernel we clear the orphan flag too. Please could you add
that too.
Thanks
Sunil
Tristan Ye wrote:
> Signed-off-by: Tristan Ye <tristan.ye at oracle.com>
> ---
> libocfs2/alloc.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/libocfs2/alloc.c b/libocfs2/alloc.c
> index 96c4fc1..d3203b9 100644
> --- a/libocfs2/alloc.c
> +++ b/libocfs2/alloc.c
> @@ -347,6 +347,7 @@ errcode_t ocfs2_delete_inode(ocfs2_filesys *fs, uint64_t ino)
> goto out;
>
> di->i_flags &= ~OCFS2_VALID_FL;
> + di->i_dtime = time(NULL);
> ret = ocfs2_write_inode(fs, di->i_blkno, buf);
>
> out:
>
More information about the Ocfs2-tools-devel
mailing list