<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[Linux操作系统下生成一个指定大小的文件 ]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Wed, 19 Nov 2014 09:56:09 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	磁盘预留空间的实验:<br/><br/>1、首先在要预留空间的分区上使用dd命令生成一个指定大小的文件：<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;创建一个10M的文件，名字是foobar：<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # dd if=/dev/zero of=/home/foobar bs=1K count=10000<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;In Unix-like operating systems， /dev/zero is a special file that provides as many null characters （ASCII NULL， 0x00； not ASCII character &quot;digit zero&quot;， &quot;0&quot;， 0x30） as are read from it. One of the typical uses is to provide a character stream for overwriting information. Another might be to generate a clean file of a certain size. Using mmap to map /dev/zero to RAM is the BSD way of implementing shared memory.<br/><br/>2、将这个文件格式化：<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# mke2fs -vFm0 /home/foobar 100000000 //（1K * 10000）<br/>3、将这个文件mount，之后就可以向这个文件中写内容了，就好比向一个目录中写内容一样：<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# mount -o loop home/foobar /mnt/mountpoint<br/>摘自：http://blog.csdn.net/penn902/article/details/5746606<br/>更多：http://blog.chinaunix.net/uid-8504518-id-2030389.html
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] Linux操作系统下生成一个指定大小的文件 ]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>