Daily Archive for Thursday, September 1st, 2005

FreeBSD foot-shooting!

As of 5.x and above, you can NOT modify partition table whose disk is in-use. This is so-called anti-foot-shooting feature of GEOM.

After searching mailing lists, I found that setting the 4-th bit of kern.geom.debugflags to 1 will turn off this *feature*. *grin*

The original message is here.

softupdate 的 bug

從很久以前,有幾台 4.x 的機器,就一直也遇到一個問題。有時候,明明 du 出來就是沒那麼大,可是 df 看出來硬碟被用光光的事情。之前是有找過,據說是跟 softupdate 有關係,當碰到的時候,只能 *硬* reboot 然後 fsck 才會好。

前陣子,在 current 修了一個 softupdate 在處理對於被砍掉的檔案還有 dirty buffer 的問題,而剛剛我在 mailing 看到說這個問題會造成的一種狀況就是我以前碰到的問題。

目前還不是很清楚有沒有辦法 merge 進 RELENG_4_11(這個是 security branch 不是 errata branch),不過我想直接跑 4-STABLE 應該是 ok 的。