Search Results: "az"

12 August 2006

Daniel Burrows: We aren't ATI's market.

Erich Schubert noted that ATI is holding onto their closed drivers. While it's unfortunate, I don't think this should be surprising to anyone. NVIDIA and ATI make their money by selling cards for gamer types, who make an art out of trying to get the latest super hardware to play the newest snazzy games on. They don't give a hoot about source code access -- after all, they're probably running proprietary games on a proprietary operating system anyway.

Free software enthusiasts, on the other hand, spend their free time hacking code and so don't have time to play the massive productions the game industry puts out nowadays; frozen-bubble or Wesnoth are about as much gaming as we have time for. As a result, we can do just fine with a video card capable of displaying Emacs, a couple xterms, and maybe a graphical Web browser -- and the built-in graphics card (usually Intel) on the motherboard is just fine for that. We also tend not to run Windows or OSX, where 99% or so of graphically intensive games come out, so even if we HAD free time for gaming we wouldn't be able to do it on a free system.

As a result, while I'd certainly like to have free ATI drivers, I think it's unrealistic to expect them anytime soon. ATI is a company, not a charity, and they will not provide source code or specs until it will clearly benefit them more than it hurts. If you don't believe me, try walking into your manager's office and saying "hey, I have a great idea! Let's give away all our secrets without any clear way to make money off it!" and see how he reacts. (note that this experiment may not apply to the 1-5% [0] of readers lucky enough to work in academia)

[0] this statistic determined by the HIGHLY SCIENTIFIC method of picking a small number at random.

Lars Wirzenius: Debian Inquirer: First post!

Welcome to the Debian Inquirer! This is the inaugural issue of the new, independent news outlet for Debian people. We are so independent that we don't even have a *.debian.* URL! We're here to give you the low-down of Debian's powers that be, to reveal scandals, to expose coverups, to boldly publish what no-one has dared publish before! All with the best possible taste, of course. We're no sleazebags. We're also not corporate shills, stiff-necked, stiff-upper-lipped boring spin doctors like some other Debian news sites we could mention, but won't, since we were brought up properly. Starting now, you can come back here for your dose of real, uncensored Debian news.

11 August 2006

Martin F. Krafft: XFS and zeroed files

Erich complains: "If the file is damaged, just fill it up with zeroes?" (in response to my recent post on filesystem problems). Update: I rewrote the second sentence of the next paragraph (up until and including the footnote) to get things right. Thanks to Russell Cattelan for providing the info. This must be the most misunderstood feature of XFS. What happens is that XFS logs all metadata changes to the journal, except for the inode size, which gets flushed to disk immediately for performance reasons [*]. At this point, the file will actually be a sparse file, which is nothing more than a file whose metadata lists a file as being of a size different than it currently is (I realise the "sparse" does not really apply when the file is "overfull", i.e. when the metadata lists it as smaller than it really is, but I am lacking a good word for that). The disk extents get allocated only when the data actually hits the disk (that's XFS's famous delayed allocation mechanism). If the power fails before the data was flushed to disk and the journal entry cleared, XFS will serve zeroes, rather than the potentially random or sensitive data that is actually on disk. This is a good thing.
[*]since almost every write() changes the file size, it would be a massive performance hit if every size change was logged. However, XFS actually violates its own journaling rules by doing this.
You can run into more or less the same problem with any journaling filesystem; the others just don't serve zeroes. Instead, they give you the data that's physically on the medium. Imagine the situation when the corrupt /etc/motd suddenly becomes a window to your previous /etc/shadow contents... I really prefer how XFS handles that. Sometimes you do get the old data back with the other filesystems, but this is because the filesystems may reuse the blocks of the old file. So it's a trade-off, and your choice between security and, uh, convenience. The only way to protect against this is to use "physical-block journaling" (as opposed to "logical journaling"), which is only supported by ext3 as far as I know (option data=ordered), at a massive performance loss. See this mailing list post by Theodore Ts'o for more info. Thanks to Alceste Scalas for sharing it with me. PS: Thanks to Wessel Dankers and Eric Sandeen for their help on #xfs. Update: Again thanks to Russell Cattelan, I just received word that code has been added to the 2.6.17 kernel which will flush an inode at close if it was truncated at some previous point. This should take care of many of the zeroed-file issues. Update: RazorFS also supports data=ordered. Thanks to Hans Kratz for pointing this out. He also adds some more information, parts of which I've written about previously:
One of the major problems of all journalled filesystems especially on notebooks/desktop machines leading to filesystem corruption is the harddisk writeback cache (enabled by default). With the writeback cache some writes are not immediately written to disk Now if a crash happens some of the data may not have hit the disk. The journalling filesystems however need a way to rely that the certain writes have hit the disk to ensure filesystem consistency. There are two solutons: Enable write barrier support in the filesystems (avalable for ext3 since around 2.6.8, mount option: barrier=1, available for the other filesystems as well now probably) or disabling the write cache altogether with hdparm/sdparm.
XFS supports barriers as well, but unfortunately not yet on non-physical media, like RAID or dm-crypt. ext3 seems to work okay on both. Enable your barriers today!

Aigars Mahinovs: Security costs? You pay!

Apparently the government agencies in UK that are managing the current security craze have little to no idea how much their super-paranoid security policies acctualy cost. It appears that direct losses from one day of air traffic chaos costs airlines 175 million pounds. Everyone who has their flight delayed for more then an hour for whatever reason need simply to sue the airlines and further the UK government according the EU regulations. Each person delayed for just 4 hours can claim as much as 600 euros of compensations. I wonder what compensation must a person delayed 24+ hours get, considering missed meeting, needed hotel bookings and other expenses. Now if all passengers and all airlines united and sued the government for the compensations (those can be in billions, considering that no sane business person would fly without their mobile and notebook and no mother would want to fly without toys to keep their children happy, so that will cause huge decreese in flying), then the government will think twice before disturbing lives of tens of thousands of people even when all suspects have been arrested. And we do not even know if there was any terror plot. Last time there was a terror craze in the UK, a road was closed and isolated, a house was raided and then disassembled and a man was shot, but in the end nothing was found. Who will foot the bill this time? The news say that people will not receive any compensation even if they were insured, because “it was an extreme event”. WTF?! That is what regulations and insurance are for!!! And the minister is saying that they think that most restrictions will stay forever. No carry-on baggage? That is ridiculose. SUE THE UK GOVERNMENT!

Zak B. Elep: ntfs-3g Love

Yesterday I was back again at the Parish to continue working on arete, the newly-installed Ubuntu Dapper machine. I was back because I had to continue migrating my father’s files from Windows to the new setup, since he wanted to try out Scribus as a replacement for his MS Publisher system for writing the parish newsletter. Anyhow, this reason, coupled with my own urge to seriously try out Ubuntu Dapper (I was running Kubuntu Dapper, doh) made me spend the whole day trying out something new. ;-) As I was looking at Dad’s documents folder, I realized that I had a problem: there are so many files here, some of them sizing up from tens to hundreds of megs (actually, stuff worked on thru the Gimp,) and knowing well that disk drive space was at a premium (arete had an 80G drive, yes, but nevertheless its already cramped,) I simply couldn’t accept copying the files from the XP’s NTFS C:\ to arete’s ext3 /home. Moving wasn’t an option either; although Dad would very much like to try out Ubuntu, he still had some projects (especially the newletter) that needed, uhm, proprietary software to work (sigh.) Thus, remembering that Linux already had some way of reading NTFS partitions, I promptly Googled about it. I also knew that the Linux-NTFS guys (who made the ntfsprogs suite and kernel module) were already working on getting full read/write NTFS support on Linux, but it didn’t occur to me that they were able to get a working implementation done so soon… Enter ntfs-3g: the third generation Linux-NTFS driver. Weighing in at around 550K, this seems to be the one thing that I need for my problem. From the looks of it, ntfs-3g can both read from and write to NTFS partitions, allowing one to create, delete, and update files and directories on the system; it can even allow access to certain metadata that even Windows XP hides from its users. Furthermore, its built from the ground up as a filesystem-in-userspace driver, using the Linux fuse subsystem. It certainly looks very attractive indeed. So, being the sysadmin for arete that I was, I quickly decided to give ntfs-3g a try. After all, it was a simple matter of grabbing the tarball, then reading the README, then doing the three-step tango of ./configure; make; sudo make install, then calling ntfs-3g /dev/hda1 /media/hda1 -o umask=007 as root. Right? Wrong. I quickly ran into a trio of subproblems: first, I needed fuse (>= 2.5.0); the one Dapper had on its official archives was 2.4.2 . So, naturally, I had to make a quick backport of the fuse source from Edgy (2.5.3), but I at this point I ran into the second problem: for Eggy’s fuse to get busted, I needed the new makedev (2.3.1) as well. Forgetting to do apt-get -f install for the moment, I grabbed Edgy’s makedev and proceeded backporting it, which ran me against the last problem: I also needed the newest sysvinit (2.86.ds1). In short, I needed to do a trio of backports first before being able to build ntfs-3g. My own fuse was almost ready to explode. Fortunately, everything went fine after the backports (thank goodness for my being a Debian package maintainer and MOTU,) so I didn’t break my own fuse after all. Soon after, I was reading and writing stuff to and from /media/hda1 without so much as batting an eyelash. Dad was definitely pleased, since that meant that he no longer had to dread the thought of having to maintain two separate document trees and cause him pain and gnashing of teeth. I was glad too, since I no longer had to dread the thought of having to hack on this today, causing me to disrupt my Summer of Code schedule. But, being the packager that I was, I realized that I could make the world a better(?) place by turning ntfs-3g from a regular Joe source to a real Debian/Ubuntu package. While I was happily waiting for ntfs-3g’s build to complete, I happened to pass by a certain HOWTO on the Web using pre-built fuse and ntfs-3g Ubuntu packages. I grabbed those packages, and took a look at them, and while they were pretty much useful, the ntfs-3g package certainly did not look to pass the gold(?) standards of Debian and Ubuntu: the ntfs-3g package was a single binary package, shipping both a shared library and its headers, coupled with the working binaries. It had outdated FSF addresses too, which my bugging Lintian pointed out to me. With some more extra time to spare on arete, I decided to go ahead and build proper a proper source package for ntfs-3g, producing the three binary packages ntfs-3g (containing ntfs-3g and mount.ntfs-3g,) libntfs-3g0 (depended on by the former package,) and libntfs-3g-dev (containing the include headers.) CDBS and debhelper definitely made this easy pickings, and made my life with ntfs-3g easier. And, I’m going to make everyone else’s life with ntfs-3g easier, by making this package available for nit-picking. ;-) I won’t pretend this to be getting into the official Debian and/or Ubuntu archives for the moment, since the upstream authors have explicitly stated that ntfs-3g will be eventually merged into the existing ntfsprogs suite, thereby making my packaging of ntfs-3g obsolete sometime soon; furthermore, the binary packages up there are built against Debian unstable and Ubuntu Edgy, so anyone looking for a Dapper solution can read this post first to avoid reinventing the wheel. But if anyone needs a good solution for NTFS read/write right now (or, if somebody else has time to kill in testing ntfs-3g,) then here’s a good one for you. Caveat emptor!  Ok, next up: finishing my SoC work…

Philipp Kern: Broken reportbug

People are going crazy when reportbug is broken, not able to report new bugs. Well, now I know how we could release etch in time... Here is the fix:
--- reportbug_ui_text.py.broken 2006-08-11 14:43:01.000000000 +0200
+++ reportbug_ui_text.py        2006-08-11 14:43:28.000000000 +0200
@@ -223,6 +223,7 @@
             break
         list.append(entry)
     ewrite('\n')
+    return list
 def get_password(prompt=None):
     return getpass.getpass(prompt)
Pipe it into cd /usr/share/reportbug; patch. Well, I hate my blog, I does not display heredocs correctly, otherwise that would have been a copy'n'paste receipt. Though I don't know if the patch fixes all the bugs introduced.

Lucas Nussbaum: Ubuntu or Debian, which one has the newest software ?

It is a common belief that Ubuntu provides newer software than Debian. This is of course true when Ubuntu is compared to Debian stable. This is also true for specific software packages, like Gnome. But how does it compare in general ? At the time of the Dapper release, here is how Ubuntu Dapper and Debian Unstable compared wrt source package versions :
In Ubuntu, but not in Debian: 1795
In Debian, but not in Ubuntu: 588
Exact same version: 4361
Same upstream version: 2963
… and same Debian version, but Ubuntu has local changes: 731
… “Debian version” newer in Debian: 2197
… “Debian version” newer in Ubuntu: 35
Different upstream version: 2166
… newer in Debian: 1955
… newer in Ubuntu: 211
So Debian easily wins. But this comparison is unfair, because Debian unstable is a moving target : of course, it’s newer than Ubuntu ! What about Debian testing ?
In Ubuntu, but not in Debian: 2137
In Debian, but not in Ubuntu: 514
Exact same version: 4529
Same upstream version: 2652
… and same Debian version, but Ubuntu has local changes: 775
… newer in Debian: 1816
… newer in Ubuntu: 61
Different upstream version: 1967
… newer in Debian: 1666
… newer in Ubuntu: 301
Yes, Debian still wins. Okay, but Ubuntu Dapper had a particularly long release cycle. What about Ubuntu Breezy, and Debian Testing at the time of the Breezy release ?
In Ubuntu, but not in Debian: 2462
In Debian, but not in Ubuntu: 384
Exact same version: 4586
Same upstream version: 2253
… and same Debian version, but Ubuntu has local changes: 981
… newer in Debian: 1172
… newer in Ubuntu: 100
Different upstream version: 1375
… newer in Debian: 1020
… newer in Ubuntu: 355
Debian testing wins again. Notes: Update: Yes, Scott, I am comparing stable releases on one side, with development versions on the other side. However, I think that it is widely known that Debian testing is usable outside of the Debian development community. I know many people using Debian testing who aren’t Debian developers. And many Ubuntu users, if they weren’t using Ubuntu, but Debian, would probably use Debian testing, not stable. Regarding Ubuntu Edgy, its use is currently strictly limited to the Ubuntu development community, and I don’t know anybody not interested in Ubuntu development running Ubuntu Edgy (that’s also because Ubuntu is released every 6 months, not 18 months, of course). That’s why it’s irrelevant to compare with it.
Also, after a quick poll on IRC, I discovered that many Ubuntu users thought that Ubuntu stable releases had newer software than Debian Testing (that was my exact question). The only point of this blog entry is to prove them wrong. Update 2 : I’ll be on holidays for the next few days, so comments are put in the moderation queue until I come back.

John Goerzen: Whose Distributed VCS Is The Most Distributed?

Lately I have been trying out a number of distributed version control systems (VCS or SCM).

One of my tests was a real problem: I wanted to track the Linux 2.6.16.x kernel tree, apply the Xen patches to it, and pull only specific patches (for the qla2xxx driver) from 2.6.17.x into this local branch. I wanted also to be able to upgrade to 2.6.17.x later (once Xen supports it) and have the version control system properly track which patches I already have.

But before going on, let's establish what it means to be an ideal distributed VCS:


There are also some things that we would generally want:



Evaluation

Let's look at some common VCSs against these criteria. I'll talk about Arch (tla, baz, etc), bzr (bazaar-ng), Darcs, Git, Mercurial (hg), and Subversion (svn) for reference.

1. The fundamental method of collaboration must be a branch
All of the tools pass this test except for svn.

2. Branching should be cheap
Everyone except svn generally does this reasonably well.

The tla interface for Arch had a pretty terrible interface for this, so it took awhile simply due to all the typing involved. That's better these days.

Darcs supports hardlinking of history to other local repositories and will do this automatically by default. Git also supports that, but defaults to not doing it, or you can store a path to look in for changesets that aren't in the current repo. I believe Mercurial also can use hardlinks, though I didn't personally verify that. bzr appears to have some features in this area, but not hardlinks, and the features were too complex (or poorly documented) to learn about quickly.

svn does not support branching across repositories, so doesn't really pass this test. Branches within a repository are not directly supported either, but are conventionally simulated by doing a low-cost copy into a specially-named area in the repository.

3. Merging between branches is intelligent
Arch was one of the early ones to work on this problem. It works reasonably well in most situations, but breaks in spectacular and unintelligble ways in some other situations.

When asked to merge one branch to another, Darcs will simply merge in any patches from the source branch onto the destination which the destination doesn't already have. This goes farther than any of the other systems, which generally store a "head" pointer for each branch that shows how far you've gone. (Arch is closer to darcs here, though ironically bzr is more like the other systems)

Merging between branches in svn is really poor, and has no support for recognizing changesets that have been applied both places, resulting in conflicts in many development models.

4. Inividial changesets should be mergeable without bringing across the whole history
Darcs is really the only one that can do this right. I was really surprised that nobody else could, since it is such a useful and vital feature for me.

Both bzr and git have a cherry-pick mode that simulates this, but really these commands just get a diff from the specific changeset requested, then apply the diff as with patch. So you really get a different changeset committed, which can really complicate your history later -- AND lead to potential conflicts in future merges. bzr works around some of the conflict problems because on a merge, it will silently ignore patches that attempt to perform an operation that has already occured. But that leads to even more confusing results, as the merge of the patch is recorded for a commit that didn't actually merge it. (That could even be a commit that doesn't modify the source.) Sounds like a nightmare for later.

Arch has some support for it, but in my experience, actually using this support tends to get it really confused when you do merges later.

Neither Mercurial nor svn have any support for this at all.

5. Branching preserves full history
git, darcs, and Mercurial get this right. Making a branch from one of these repos will give you full history, including individual diffs and commit logs for each changeset.

Arch and bzr preserve commit logs but not the individual changesets on a new branch. I was particularly surprised at this shortcoming with bzr, but sure enough, a standard bzr merge from a remote branch commited three original changesets into one and did not preserve the individual history on the one commit.

svn doesn't support cross-repo branching at all.

6. Merging preserves full history
Again, darcs, git, and Mercurial get this right (I haven't tested this in Mercurial, so I'm not 100% sure).

Arch and bzr have the same problem of preserving commit logs, but not individual changesets. A merge from one branch to another in Arch or bzr simply commits one big changeset on the target that represents all the changesets pulled in from the source. So you lose the distinctness of each individual changeset. This can result in the uncomfortable situation of being unable to re-create full history without access to dozens of repositories on the 'net.

Subversion has no support for merging across repositories, and its support for merging across simulated local branches isn't all that great, either.

7. It is possible to commit, branch, merge, and work with history offline
Everyone except Subversion does a good job of this.

8. The program is fast enough for general-purpose use
All tools here are probably fast enough for most people's projects. Subversion can be annoying at times because many more svn commands hit the network than those from others.

In my experience, Arch was the slowest. Though it was still fine for most work, it really bogged down with the Linux kernel. bzr was next, somewhere between arch and darcs. bzr commands "felt" sluggish, but I haven't used it enough to really see how it scales.

Darcs is the next. It used to be pretty slow, but has been improving rapidly since 1.0.0 was released. It now scales up to a kernel-sized project very well, and is quite usable and reasonably responsive for such a thing. The two main things that slow it down are very large files (10MB or above) and conflicts during a merge.

Mercurial and git appear to be fastest and pretty similar in performance.

All of these tools perform best with periodic manual (or scheduled cron jobs) intervention -- once a month to once a year, depending on your project's size. Arch users have typically created a new repo each year. Darcs users periodically tag things (if things are tagged as part of normal work, no extra work is needed here) and can create checkpoints to speed checkouts over the net. git and Mercurial also use a form of checkpoints. (not sure about bzr)

Subversion works so differently from the others that it's hard to compare. (For one, a checkout doesn't bring down any history.)

Conclusions
I was surprised by a few things.

First, that only one system actually got #4 (merging individual changesets) right. Second, that if you had to pick losers among VCSs, it seems to be Arch and bzr -- the lack of history in branching and merging is a really big issue, and they don't seem to have any compelling features that git, darcs, or Mercurial lack. #4 was a unique feature to Darcs a few years ago, but I figured it surely would have been cloned by all the other new VCS projects that have popped up since. It seems that people have realized it is important, and have added token workaround support for it, but not real working support.

On the other hand, it was interesting to see how VCS projects have copied from each other. Everyone (except tla) seems to use a command-line syntax similar to CVS. The influence of tla Arch is, of course, plainly visible in baz and bzr, but you can also see pieces of it in all the other projects. I was also interested to see the Darcs notion of patch dependencies was visible (albeit in a more limited fashion) in bzr, git, and Mercurial.

So, I will be staying with Darcs. It seems to really take the idea of distributed VCS and run with it. Nobody else seems to have quite gotten the merging thing right yet -- and if you are going to make it difficult to do anything but merge everything up to point x from someone's branch, I just don't see how your tool is as useful as Darcs. But I am glad to see ideas from different projects percolating across and getting reused -- this is certainly good for the community.

Updates / Corrections
I got an e-mail explaining how to get the individual patch diffs out of bzr. This will work only for "regular", non-cherry-picked merges, and requires some manual effort.

You'll need to run bzr log, and find the patch IDs (these are the long hex numbers on the "merged:" line) of the changeset you're interested in, plus the changeset immediately before it on the same branch (which may not be on the same patch and may not be obvious at all on busy projects.) Then, run bzr diff -r revid:old-revid-string..new-revid-string.

I think this procedure really stinks, though, since it requires people to manually find previous commits from the same branch in the log.

10 August 2006

Martin F. Krafft: Through with XFS

I am through with XFS, once and for all. Well, at least for laptops. I still think it's a good filesystem when you can ensure that the power never goes, and your hardware is reliable, but it's just not adequate for laptops or even desktops. I ran into some serious problems a while ago, but managed to recover. Two nights ago, however, three XFS filesystems on my laptop decided to blow up and left my system thoroughly broken. I guess as the hibernate maintainer, I should really start doing my tests somewhere else than my main system... It all started out with a dist-upgrade and this output:
dpkg: error processing /var/cache/apt/archives/dpkg_1.13.22_i386.deb
(--unpack): unable to make backup link of
'./usr/share/man/man1/dpkg-deb.1.gz' before installing new version: Unknown
error 990
Looking at /usr/share/man/man1, I started to anticipate the apocalypse:
# ls -l /usr/share/man/man1
total 7956
?????????? ? ? ?    ? ? ? 7zr.1.gz
?????????? ? ? ?    ? ? ? 822-date.1.gz
?????????? ? ? ?    ? ? ? CA.pl.1ssl.gz
?????????? ? ? ?    ? ? ? Defoma::Common.1.gz
So I look at the log, and amidst kernel oops notices, there's this lovely cookie:
Filesystem "hda6": Corruption of in-memory data detected.  Shutting down
filesystem: hda6
Filesystem hda6 is /usr, so at that time I figured "it could have been worse", booted to single user, and remade the filesystem with the intention to simply reinstall all packages... when I found /var/lib/dpkg/info to be in similar condition. The rest of /var seemed fine, but I resolved then that there was no hope in reviving this system. Fortunately I brought an external drive that had just enough free space to hold my /home and some other stuff, but since USB is really slow when it comes to shifting large amounts of data, I decided to do something productive in the mean time and to answer some outstanding mails. It wasn't difficult to get SSH back up, so I started to work on a remote machine and used the time efficiently. Some time later, though, I got confused in the mist of screen sessions and was browsing my home directory on the laptop, thinking I was elsewhere (my home directories are mostly synchronised), when I noticed a directory in similar condition as the above. Oh shit. Imagine my pain and fear as I first thought my remote machine was also dying, imagine the sigh when I found out I was on the local filesystem, and imagine the shock when I realised that /home was also affected by the XFS breakage... A glance around /var confirmed that the XFS breakage was actually spreading and had now affected three filesystems on this machine. Fortunately, by that time, I had copied everything to the external drive, and decided to put my laptop and myself to sleep. I woke the next morning to the task of reinstalling the thing and decided to be optimistic about it. After all, a reinstall would mean I could finally try partman-crypto and encrypt my laptop's data to protect against leaking sensitive stuff in the case of loss or theft of my laptop. The installation was not as painless as I had hoped, but that was mainly because I ran into a known problem with the graphical installer and partman-crypto, which does not allow to set up volumes with random encryption keys (e.g. swap; see the forthcoming announcement for the beta3 release of the installer), and a bunch of smaller bugs. I had to restart the installation with the traditional frontend to get what I wanted, but other than that, I was very impressed with what our installer development team has accomplished! And a special round of gratitude to Frans Pop for not losing his patience while helping me on several occasions throughout the process. Now, 24 hours after the incident, I am back to normal with a fresh laptop and no data lost (except for one directory which I pulled from a mirrored remote machine; it had no local modifications (so why did XFS screw it up anyway?)). The fonts are all jaggy, so there's something I have to figure out. All things considered, I am sad to have lost 24 hours, but I can also relax more now, without fear of further XFS breakage or loss of private data. Update: Oh, and despite this, I did choose ext3 for all my laptop's filesystems. JFS was really cumbersome and slow last time I tried it, and I surely would not touch RazorFS after experiencing serious data loss on numerous occasions. Update: Two responses so far. Full ack for Julien (except for him laughing at me), Ingo's post warrants a reply though. First, ext3 is also journaled, and if you're about to say "yeah, but it's a hack on top of ext2, well... ext2 is damn mature, and journaling isn't really rocket science, so that "hack" isn't going to be too complicated. In fact, I like the idea of journaling being an option rather than a built-in feature. Second, of course you're supposed to keep backups. But since you keep backups, my top requirement of a filesystem is not "how to get the data back", but "how to ensure it does not break. If it breaks, I can reinstall and restore from backup, but that's a certain amount of time lost. If it doesn't break, well, that's like stealing a little something back from death then, isn't it? Third, I do follow the linux-xfs mailing list, but so what? I did not have write cache enabled, and I was running the 2.6.17.7 kernel at the time of the mishap. Lastly, you point to "excellent tools" to recover the filesystem. I am not sure how excellent xfs_repair really is when it reports "bad magic number 0x0 on dir inode 4696727" during the run, claims to have fixed it, I mount the filesystem, unmount it, run xfs_repair again and get the same message. No filesystem is perfect, and as we know from Biella's problems (among many others, ext3 is no exception. But we did get her data off! So then it's really an open field again, crap filesystem against crap filesystem. I guess at this point it helps to know that ext3 actually follows VFS semantics, while on XFS, a completed sync() syscall does not actually mean it has written the data to disk (see e.g. #317479). And then there are bugs like #239111... ext3 it is for now. If that let's me down, I'll try JFS. If that fails and noone has actually implemented a proper filesystem, I might have a go myself. Haha. Update: Alceste Scalas adds:
Ingo is right when he says that every filesystem has bugs --- but bugs apart, the design of Ext3 (i.e. its physical-block journaling) makes it a far more reliable choice for desktop and laptop PCs, expecially for people without an UPS. An Ext3 filesystem could only crash because of a bug or an hardware failure, while an XFS filesystem can be trashed even without bugs or hardware failures, due to the unavoidable consequences of a power loss on PC-class hardware.
He also alerted me to this mailing list post, which compares data=ordered journaling of ext3 (which almost noone does for performance reasons) with XFS and RazorFS. Update: You may also be interested in this post. Update: Otavio Salvador points me to this FAQ entry, which SGI must have added very lately. It explains how to deal with the directory corruption that was part of my problem. I guess I would have liked to know earlier, but I consider the outcome with dm-crypt + ext3 a win anyhow.

Andrew Pollock: [opinion] An Inconvenient Truth gets bad press Down Under

Film at 11 My friend Andrew brought this article in the Sydney Morning Herald to my attention today. I was initially mildly incensed by it, then someone at work pointed out the author's Wikipedia entry, which led onto this Bulletin article on her. So it seems she's just a professional right-wing shit-stirrer. This other article she wrote managed to stir up some ire amongst the cycling community. Still, I am glad to see that An Inconvenient Truth is coming to Australia. Well worth the watch. Now I need to go find where Who Killed the Electric Car is screening...

9 August 2006

Erich Schubert: Firewire firmware workaround

Dear Lazyweb, where do I best put the following workaround
echo "Initio:WD2000JB-00EVA0:0x4000" >> /proc/scsi/device_info
needed for having write access to my Initio-chipset based external disk? I have bad luck with external drives. The first I bought is apparently a faulty prolfic PL3507. From all the other reports that happens quite often. And now my replacement housing, bought via ebay, works okay, but only with above workaround (which tells the kernel to ignore certain bad replies from the drive that make the kernel believe its read-only). I also have a 2.5" housing with the PL3507 chip, that one works fine. But two out of three having issues, that sucks.

Evan Prodromou: 21 Thermidor CCXIV

We had a great trip up from wt:Boston yesterday and today. Monday morning, after Wikimania had ended, I went to visit the Cambridge offices of Let's Go publications. Let's Go is a travel guide series researched, written, edited and published exclusively by Harvard students. It's an amazing feat, and I've always liked the quality of the guides and the depth of coverage. Let's Go is far from the most prolific of travel publishers, but they have good writing and high-quality listings. I spent about an hour talking with the publicity manager, editor-in-chief, and publisher, mostly about Let's Go but also about Wikitravel a bit. It was a good time. Catching back up with Maj and Amita June, we had lunch at the Barking Crab, a clam shack on the harbor in Boston. Amita June loved the clam chowder; Maj ordered crab legs, and cracked them open with a big rock. Sated, we headed out of Boston on Massachusetts highway 2, through wt:Concord (Massachusetts) and a few other towns to the Connecticut River. It took a while to get out of Greater Boston, but once we were out it was beautiful country, still very wild after almost 400 years of Europeans. We drove up through wt:Brattleboro to wt:White River Junction and then called it a night -- the baby was wailing something fierce. We got a calzone and a Greek salad delivered by Ramunto's Pizza in wt:West Lebanon (New Hampshire), right across the border. It was a great addition to the otherwise so-so wp:X-Men: The Last Stand that we watched on the hotel movie channel. tags: ramunto's pizza

Today This afternoon was even better. We got up this morning early and were on the road before 9AM. That's always the best time to drive with the baby -- before she gets too crazy. We whizzed past wt:Burlington (Vermont) and up into the Lake Champlain Islands -- a really nice string of communities that reminds me of wt:Prince Edward Island. The baby started wailing around noon, so we stopped at North Hero State Park and waded in the lake a bit. Lake Champlain has a lake serpent like Loch Ness, but this one is named "Champ". I held Amita June carefully to make sure she wasn't swept away by this fossil reptile. After a two-hour nap on the grass (!), we had some delicious sandwiches in wt:Alburg then crossed the border. Maj had to renew her work permit -- she sent in a renewal by mail a couple of months ago, but she hadn't received the permit by the time we left, so she had to re-apply at the border. Once we got through with that, it wasn't long before we were back in Montreal. Home again, home again, though. I guess there was some pretty nasty weather last week in Quebec -- there are huge tree limbs, 3-4 feet in diameter, on the ground across the street in Parc La Fontaine. My lawn out front is positively glowing green, though. tags:

8 August 2006

John Goerzen: First steps with git and I'm not all that pleased

I have been tracking 2.6.16.x here because Xen doesn't have patches for 2.6.17 yet (why on earth that is, I don't know.) But I need a few 2.6.17.x patches to the qla2xx driver. So I figure this is an opportunity to learn git.

I learned git, but then quickly learned that I can't just pull random commits from one branch to another. I have to use git cherry-pick, which doesn't actually pull the commit unmodified -- it takes a diff, and commits a new patch based on that diff. So I expect problems later when I bump the local branch to 2.6.17.

This seems depressingly like arch/baz/bzr, and is a good reason for me to stay with darcs for now. This same operation with darcs would have been trivial, AND darcs would have automatically pulled in prerequisite patches rather than giving a merge failure and making me find them manually.

7 August 2006

Joey Hess: laziness is ..

googling the book whose title has caught my notice in the library shelf 5 feet away. I've also noticed that if I'm in the library and want some book, I still prefer to download an e-book if I can, rather than digging up the dead-tree copy. Libraries are still great for the serendipity factor even if you avoid touching the actual books.

Evan Prodromou: 20 Thermidor CCXIV

Wikimania is over now, and although I have to admit that I'm relieved in a lot of ways, since it's been a long week, I was still a little bummed to say goodbye to people at the closing event last night. I'm a big believer in the meaning and value of on-line communication, but there's something about being physically present with the people who are making wiki and Open Content happen that means a lot to me. Saturday's discussions were all pretty good -- I really liked hearing about The Internet Archive and the amazing amount of knowledge they're making available for future generations. 26 million books, 300,000 films, 3-4 million audio recordings... there is a lot of human culture that we can and should preserve in digital format. Brion's talk about future developments in MediaWiki was great, too. As usual, the hallway conversations were almost as productive as the sessions themselves. I talked to Ray and Mark about using WikiIndex as a clearinghouse for wp:Interwiki coordination. I talked to Ward, who's going to dig in deeper to the MediaWiki parser (impressive!). Maj and I talked with Gil Penchina, who's a real nice guy. And, as the event was wrapping up Saturday evening, I spent a half-hour talking with Kevin Scott, who's got some interesting ideas for launching a new wiki site (or cluster of sites). As I was getting ready to leave, I ran into a cluster of people around wp:Richard Stallman, who'd shown up more or less out of the blue. He was haranguing the crowd about the term intellectual property, and as Brad Patrick, interim CEO of the Wikimedia Foundation and an IP lawyer, was at the front of the line, I got the feeling that Brad had made the mistake of introducing himself. Whoops. I talked with Mako for a while; he had a t-shirt that said, "debian-legal stole my DFSG". Excellent! I also met Thomas Malone, and we talked a bit about how an information commons affects what we think of as "work" and "knowledge workers". Everyone was drifting off to eat before the party, and Professor Malone invited me to join him, but I had to get back and see Maj and Amita June. But, catching a familiar face nearby, I said, "Thomas, have you met wp:Ward Cunningham before...?" They headed off to dinner together, and since they were still hanging out when I saw them later at the party, I assume they hit it off. We had dinner Saturday night at Charlie's Kitchen, a misnamed bar with lots of good, fried crab items. I guess the burgers are good, too, but we enjoyed the seafood and the juke box. Poor Amita June -- growing up in juke joints across North America. She does love french fries, though... Saturday night we went to the Wikimania party at the MIT Museum, which had an amazing number of great exhibits of neat AI schtuff. I spent some time talking with Professor Malone and Ross Mayfield of SocialText. Ross had on a T-shirt from d-Camp, and as we talked about the BarCamp phenomenon Professor Malone decided to hold one at MIT. Cool. Ross had some questions about the recent launch of Wikicars, which has some configuration issues at launch time such that the license shown was incorrect. He was glad to hear it was fixed. I think Ross does a good job keeping an eye on the business aspect of wikis -- I don't think there's another blogger out there who's doing quite as good a job at it. We headed home early -- we've been dragging our poor baby around to too many parties lately -- and got a good night's sleep. tags:

Sunday Sunday's events were pretty good, although I was starting to feel pretty crispy. The discussion about the Wikimedia Foundation's board was really fascinating, but also a bit alarming. The Foundation has a huge job, and they're such a young organization -- like a colt just standing on its feet. Growing pains are inevitable, but it's impressive how committed the people on the board are. They love Wikipedia and the other Wikimedia as much as we all do. I saw a great discussion of wiki map editing (using SVG and Javascript to provide in-browser editing), something very near and dear to my heart, since we need it for Wikitravel. Sadly it was opposite Joseph Reagle's talk on neutrality, so I missed parts of both switching between events. The event ended with a big speech about the nature of knowledge by wp:Dave Weinberger. He started off with a hilarious send-up of Lawrence Lessig's presentation style, but got down to some fundamentals of semiotics in a very approachable way. It was a good finisher for the Wikimania event. Today we're going to stop in to see some people here in wt:Cambridge (Massachusetts), then it's off to wt:New Hampshire and back home. Where we'll be for all of 10 days before packing off for WikiSym. Man, what a month of wikis. tags:

Jos Parrella: About apt-proxy

apt-proxy has become an omnipresent tool in Debian-based environments. Both in work and in my clients I usually install it so we have a great way to save bandwidth (in a Country where a 512 Kbps ADSL line costs you around 50$/month, it matters) I have noticed also several Ubuntu users using it, even in big environments where a local mirror might be justified and even when other solutions like apt-cacher seem to be getting stronger. Sadly, current state of apt-proxy is not so good (see bugs 282746, 316670, 274679, 262528, 327268, 302503, 295329 and probably others). While upstream is doing a great job implementing fixes, the user base has evolved very quickly and it’s starting to find (and fix) bugs by its own. One example of this is the current release of this version of apt-proxy, made by Daniel Baur, which implements pending patches for eight bugs, including patches which solve Ubuntu-specific issues. A partial debdiff which shows the relevant changes on the code is here for the lazy admin. Chris Halls has acknowledged these fixes and plans to upload a new version to Sid soon. That would be a happy-ending chapter of saving apt-proxy from death. Personally, I’m going to have a closer look on apt-cacher while this new package appears.

6 August 2006

Ross Burton: Cornish Bliss (part 1)

Let's start this with a cliché: A Short History of Tractors in Ukrainian: £8
Best Of by Nina Simone: £14
One week in a rather swish house just outside St. Ives: about £200
No email. No Jabber. No Subversion. No Bugzilla: priceless For the last week Vicky and myself were in Cornwall, staying in a house just outside St. Ives with her family. The house was much nicer than we expected, very tastefully decorated and well equipped, with a DVD player, hi-fi, coffee machine, and so on. Settling In The house was in Carbis Bay, about a twenty minute walk from St. Ives along the costal path that was directly off the bottom of the garden. The path towards St. Ives is also the nicest stretch of costal path I've been on: it is surfaced and wide enougth to drive on, unlike the paths we've been on previously which are often no more than a foot wide cutting in the earth, next to a sheer cliff. St. Ives The Sea Our first impression of Cornwall was one of chill: when the taxi dropped me off at the train station to start the journey down the thermometer said 38°C, but at the same time the next day it was only 23°C. Brrrr. The traditional Cornish summer proceeded to roll in a few days later, with heavy rain, gusty wind and general grimness for a day. Yay for DVD players! Typical Cornish Summer St. Ives is a lovely town. Unlike Newquay which was got far too popular for it's own good (the two-carriage train had both a Stag and Hen party on board en route to Newquay, trying not that subtly to pull each other), St. Ives is busy but not crammed. There is no demographic that dominates the tourists, a mix of families young and old, surfers, twenty-somethings and pensioners means it doesn't feel like a tourist hotspot, and it manages to cater for everyone. The habour front has lounge bars, traditional pubs, restaurants and cornish pasty shops, catering for everyone. The town has become quite a focal point for artists recently (since 1928, Wikipedia tells me), and there seems to be more independent art galleries than pasty shops (!), including the Cornwish outpost of the Tate. Tate St. Ives is pretty small for anyone who has been to Tate Modern, but it's damn good: due to the size it is very focused (there are just two galleries) and the building itself is a wonderful modern piece of art deco architecture. We went with the intention of getting some more pictures for the house and did quite well: a print of Horizontal Stripes by Patrick Heron, and a limited run print (427/600) by a local artist. I'm too lazy to remember the name of the picture or the artist, but I'll take a photo of it later. Our Grand Plan of having more individual art in the house is going well, we've an original oil-on-canvas abstract to collect from the framers that we bought in Paris too. To be continued...

Wouter Verhelst: Deploying MIDlets

I've been playing with the mobility suite in Netbeans, writing some application for my cellphone. This seems to be pretty easy, since the mobility suite comes with an emulator in which you can test these MIDlets. Which is great. Unfortunately, there is one slight problem: I can't seem to find out how I can deploy these MIDlets to my cellphone using bluetooth. Netbeans gives me the option of immediately deploying to a webserver, using a variety of protocols (WebDAV, FTP, or even SSH, just to name a few), and to just put them in a directory if that isn't enough. When I choose the latter, it puts two files in that directory; a .jar and a .jad. However, sending either of these files to my mobile phone doesn't work—it receives them, but does not recognize them properly. It's probably possible to download them through the Intenet using WAP or similar technologies; but doing that involves connection costs, which is silly considering that I can send files to it through bluetooth. I'd like to do it that way if at all possible. So, dear Lazyweb, I guess that leaves me with a question: is it possible to send Java MIDlets to my cellphone using bluetooth, and if so, what do I need to do?

4 August 2006

Pascal Hakim: Teams.debian.net

One of the things I've been working on, on and off for the last few months is teams.debian.net. Along with a few others, we felt that there were not enough options for Debian-related mailing list hosting. While this may seem strange to some, a number of people at DebConf5 found the idea to be worthwhile. Most Debian-related lists which would not be considered for lists.debian.org could find hosting at teams.debian.net instead. The main purposes behind teams.debian.net are:
To request a new mailing list, simply follow the instructions on teams.debian.net Of course, like any free software project, there are still some things which are needed. The main one is currently the lack of a public web archive for lists which want it. I wanted to try to replace MHonArc with something that looked a little better and was more user-friendly, but I have yet to find something which I think would be an appropriate replacement. While some have suggested Lurker, I feel that is not very useable in a long term hosting environment, as it is harder to navigate around older entries. While this is acceptable in some places, it's definitely not in others. You can consider a "Dear Lazyweb" paragraph if you wish. Many thanks to Andreas Barth and Martin Zobel-Helas for their help in setting this up, providing machine space, and prodding me along when necessary.

Evan Prodromou: 17 Thermidor CCXIV

I was pretty happy to see that Arthur Frommer, of Frommer's, said that Wikitravel may help in planning your trip. It's true, too. He doesn't give the kindest description of Wikitravel, but then again, he doesn't really have the incentive to. (Thanks to Jani, who spotted the article and posted it in the Wikitravel logbook for 30 July 2006.) Don Marti, who has a new blog at LinuxWorld.com, had an interesting take on Encyclopedia Britannica and Wikipedia, originally from Dave Weinberger's notes on Wikipedia credibility. Wow, that's a lot of links. Anyways, the upshot is that Britannica has its back up against the wall, and is in this venom-spitting defensive position, much like wp:Richard Nixon in his last days in the White House. You kind of have to feel sorry for the ol' Brit. I don't think it should have to work that way. At least for Wikitravel, I want traditional travel publishers to know that the user-contributed, user-fact-checked information on Wikitravel is theirs to use under a very liberal copyleft license. You've got as much right to the travel guides as anyone else, and they can help your business and your readers. I also think there's a place for the first travel publisher to start sharing their copyrighted information into Wikitravel for continued development and use. There's a lot of positive publicity in it for the company that starts devoting photos, data, and copy to the public good by putting it in Wikitravel. My phone is on and my email slot is open (see my Wikitravel home page for contact details) if there's an executive or editor with the courage and foresight to take the plunge. tags:

Next.

Previous.