Clearing orphaned inode

转载:https://bugzilla.redhat.com/show_bug.cgi?id=147748


Clearing orphaned inode:

Stephen Tweedie 2005-02-10 18:35:23 EST
This is not a bug, it's the journaling clearing up a normal situation.

An "orphaned" inode in this context is one which has been explicitly
deleted, but which was still open by some process when it was deleted.
 The file vanishes completely from the directory structure, but normal
Unix semantics require it to remain present on disk until the last
user of that file closes it.  At that point, the inode itself (as
opposed to the directory entries pointing to it) is deleted, and the
disk space used by the file is cleaned up.

Now, if such an orphaned file is present when we crash or forcibly
reboot/shutdown, then the reboot counts as a "close" of the file,
because it is obviously no longer open!  But the inode is still
present on disk, because it was open when the system rebooted.  

In that case it is perfectly legal for ext3 to delete the inode during
its recovery, because the file has already been explicitly deleted
during previous operations.

This happens all the time when, for example, an rpm upgrade of system
libraries is done.  The old libraries may still be in use by running
applications, but the rpm upgrade will delete the files.  The expected
behaviour is that the old files are gone after a reboot, with no disk
space leaking to the previously-in-use inodes.  So the inode delete is
required.  It would be a bug if this situation lead to
properly-deleted inodes coming back from the dead into /lost+found.
按照回答者的描述:

clearing orphaned inode为系统恢复时的正常操作

其是清理上次系统不正常关闭时,那么在磁盘但是已经不可达的文件。

而这些文件产生的一个原因,如一个进程打开一个文件,

但是这个文件被更新或者删除了,这时候旧的文件虽然不可达了,但是

磁盘不会马上清理它,而是等到最后一个还引用这个文件的用户/进程退出后,

便会清理这个文件。但是如果这个时候系统宕机或者不正确关闭了。

这时候这个不可达文件仍然在系统中,这时候系统恢复的时候,发现这类文件,

便会重新清理这些文件

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
POSTING_INTERFACE_CLEARING是一个函数,用于进行标准清账操作。它封装了BDC录屏的功能。\[3\]在使用该函数时,如果传入参数ITEM,则必须传入公司代码、记账码和科目。根据你提供的引用内容,你的问题是关于批量创建清账凭证时参照码3的问题。你希望每个参照码3对应一张凭证,但实际上清账凭证创建成功后,参照码3一直沿用了模板中的第一个值。你进行了排查并确认了传参数据的正确性,并清空了相应的内表。然后你尝试使用了free memory来清空ABAP内存变量,并成功解决了问题。然而,你想知道使用free memory会有什么影响。 #### 引用[.reference_title] - *1* [SAP-ABAP-清账函数BAPI使用POSTING_INTERFACE_CLEARING,应付暂估外币清账程序](https://blog.csdn.net/Qunending/article/details/124666847)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [清账函数POSTING_INTERFACE_CLEARING的应用](https://blog.csdn.net/wangshaoqiang022/article/details/90234375)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值