泄漏文件描述符

泄漏文件描述符

如果文件描述符泄漏意味着什么

 File descriptor 6 (socket:[901758]) leaked on lvextend invocation. Parent PID 10035: /bin/zsh
 File descriptor 9 (/dev/pts/1) leaked on lvextend invocation. Parent PID 10035: /bin/zsh
 File descriptor 11 (/dev/pts/1) leaked on lvextend invocation. Parent PID 10035: /bin/zsh
 File descriptor 12 (/dev/pts/1) leaked on lvextend invocation. Parent PID 10035: /bin/zsh
 File descriptor 15 (/dev/pts/7) leaked on lvextend invocation. Parent PID 10035: /bin/zsh
 File descriptor 17 (/dev/pts/7) leaked on lvextend invocation. Parent PID 10035: /bin/zsh
 File descriptor 18 (/dev/pts/7) leaked on lvextend invocation. Parent PID 10035: /bin/zsh
   Extending logical volume usr to 30.00 GiB
   Logical volume usr successfully resized

这是什么意思?

答案1

这些是设备上保持打开状态的文件描述符(您正在调整其大小)。

lvm(8) 说:

On invocation, lvm requires that only the standard file descriptors stdin, stdout
and stderr are available. If others are found, they get closed and messages
are issued warning about the leak.

相关内容