2001-May-29
Sam of Loki told me to use libtool and libmain.sh from his SDL for smpeg. And it worked. I could build smpeg and play some videos with plaympeg and glmovie. I didn't sucessfully listen to any videos though. (I guess I need to find some more to try; I do have a "Wedding Singer" trailer that plays but the audio is not understandable.)
Studied a little bit about UFS. A posting to a isp-linux asked why df(1) results don't add up. If it is a UFS filesystem, this has something to do with minfree -- or the "minimum acceptable percentage of file system blocks which may be free." It is usually around 5- to 10-percent. The reserve of free blocks helps with performance and fragmentation.
rainier:/usr/src/bin/df$ df Filesystem 512-blocks Used Avail Capacity Mounted on /dev/wd0a 230942 160272 59122 73% / ... rainier:/usr/src/bin/df$ perl -e 'print 230942 - (0.05*230942) - 160272, "n";' 59122.9It uses some algorithm like:
number of data blocks in fs * (100 - minimum percentage of free blocks) / (number of data blocks in fs - (number of free blocks per cylinder group * number of frags in a block in fs + number of free frags) )(* Maybe I should patch df or make a utility to dump these values.) I am not sure about ext2fs though, but I think that it stores similar info (free_blocks_count).
A mailing list posting asked for full (not cropped) hostnames reported by who(1). I made a simple patch (without thinking) to add a option to not format (limit) the output. Later I was reminded about the utmp(5) limitations (so the host name was already limited in the /var/log/wtmp file in the first place). I must have been tired :) (Another solution would be to modify the /usr/include/utmp.h defined sizes and then rebuild everything that uses them -- but would probably cause an issue with other routines.)