Getting to know /var
| ( ! ) Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/bbbart/www/htdocs/blog/wp-content/plugins/vimcolor/wp-vimcolor.php on line 105 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 53060 | {main}( ) | ../index.php:0 |
| 2 | 0.0002 | 56500 | require( '/home/bbbart/www/htdocs/blog/wp-blog-header.php' ) | ../index.php:17 |
| 3 | 0.1817 | 16855804 | require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' ) | ../wp-blog-header.php:16 |
| 4 | 0.1833 | 16918384 | include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/single.php' ) | ../template-loader.php:43 |
| 5 | 0.2183 | 17036280 | the_content( ) | ../single.php:16 |
| 6 | 0.2184 | 17038104 | apply_filters( ) | ../post-template.php:169 |
| 7 | 0.2230 | 17044840 | call_user_func_array ( ) | ../plugin.php:166 |
| 8 | 0.2230 | 17045024 | vim_color( ) | ../plugin.php:0 |
| 9 | 0.2230 | 17045360 | preg_replace ( ) | ../wp-vimcolor.php:143 |
| 10 | 0.2230 | 17051952 | preg_replace ( ) | ../wp-vimcolor.php:143 |
| 11 | 0.2230 | 17052148 | vimcolor_process_color( ) | ../wp-vimcolor.php(143) : regexp code:3 |
| 12 | 0.2298 | 17068532 | fread ( ) | ../wp-vimcolor.php:105 |
| ( ! ) Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/bbbart/www/htdocs/blog/wp-content/plugins/vimcolor/wp-vimcolor.php on line 105 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 53060 | {main}( ) | ../index.php:0 |
| 2 | 0.0002 | 56500 | require( '/home/bbbart/www/htdocs/blog/wp-blog-header.php' ) | ../index.php:17 |
| 3 | 0.1817 | 16855804 | require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' ) | ../wp-blog-header.php:16 |
| 4 | 0.1833 | 16918384 | include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/single.php' ) | ../template-loader.php:43 |
| 5 | 0.2183 | 17036280 | the_content( ) | ../single.php:16 |
| 6 | 0.2184 | 17038104 | apply_filters( ) | ../post-template.php:169 |
| 7 | 0.2230 | 17044840 | call_user_func_array ( ) | ../plugin.php:166 |
| 8 | 0.2230 | 17045024 | vim_color( ) | ../plugin.php:0 |
| 9 | 0.2230 | 17045360 | preg_replace ( ) | ../wp-vimcolor.php:143 |
| 10 | 0.2307 | 17066768 | preg_replace ( ) | ../wp-vimcolor.php:143 |
| 11 | 0.2307 | 17066948 | vimcolor_process_color( ) | ../wp-vimcolor.php(143) : regexp code:3 |
| 12 | 0.2349 | 17068476 | fread ( ) | ../wp-vimcolor.php:105 |
Today I found out the best way to find out what /var really means on
a Gentoo system: I removed it.
Something strange happened. There was a shortage of disk space on the
/ partition, which also housed /var, so I created
/home/var on a different partition, did
, added
to /etc/fstab and rebooted into single user mode. There, umounted
/var to get back to the original partition (of course, the new
fstab-rule as followed already), and rm -rf‘d /var.
So far, so good.
Reboot…
Empty /var!
This means that almost no services can start up (no ssh, no syslog, no
portmap, no nothing…) as things like /var/spool, /var/log,
/var/run and /var/lock are gone an away…
But what’s worse: /var/www is bye-bye (luckily it contained only
localhost-websites) and /var/lib/portage/world as well. Now, portage
thinks nothing is installed and wants to re-emerge every tiny little dependency
out there. regenworld, I hear you think? Won’t work.
/var/log/emerge.log is gone, remember?