
Unix
文章平均质量分 79
会飞的猪猪萌萌哒
这个作者很懒,什么都没留下…
展开
-
Bash的function中exit不退出程序
Bash的function中exit不退出程序现象最近脚本写的多,注意到一个以前也遇到过但是从没仔细思考的问题: 为什么某些情况下function中exit,脚本依旧继续执行?举个例子...原创 2015-07-29 11:41:31 · 5879 阅读 · 0 评论 -
bio中储存私有数据
bio.bi_private是不能储存私有数据的,内核中会频繁使用这个成员。找了好久也就只找到bio.bi_rw:/* * bio bi_rw flags * * bit 0 -- data direction * If not set, bio is a read from device. If set, it's a write to device. * bit 1 -- f原创 2015-03-02 19:44:12 · 1248 阅读 · 1 评论 -
VMWARE Fusion 5 and Cent 6.4
原文参见:http://www.utterlyforked.com/vmware-fusion-5-and-cent-6-4/Just a really quick drive-by posting. I’m currently working the new Vagrant VMware provider. I thought I’d build a quick Cent转载 2015-02-26 10:46:03 · 697 阅读 · 0 评论 -
/etc/rcx.d/<script>
The reason RedHat does not kick off your K* rc shutdown scripts is because RedHat checks for a lock file for your script in /var/lock/subsys/To fix this, simply add a line to your 'start' sectio转载 2015-02-09 09:16:44 · 672 阅读 · 0 评论 -
ext4 and data loss
ext4 and data lossBy Jonathan CorbetMarch 11, 2009 The ext4 filesystem offers a number of useful features. It has beenstabilizing quickly, but that does not mean that it will work perfectly fo转载 2013-10-03 14:44:20 · 1032 阅读 · 0 评论