Is this a problem?

• 本文约140字,阅读大致需要1分钟 • Kernel

While reading the snapshot code in FFS Soft Updates’s FreeBSD implementation, I got a question about the following code:

The code indicated with bold is what I have question on. Isn’t it possible to get a zero if the unlinked file is zero-sized? If so, then what will happen when doing ffs_blkfree()?

My intention is to modify the if statement like this:

if ((len != 0) && len < (fs->fs_base))

I have e-mailed Kirk about this issue.