[haiku-gsoc] Disk Queries Return Unpredictabe Results

  • From: Ankur Sethi <get.me.ankur@xxxxxxxxx>
  • To: haiku-gsoc@xxxxxxxxxxxxx
  • Date: Thu, 23 Jul 2009 01:12:02 +0530

Hi,

Something seems to be wrong with disk queries on my Haiku build. Running the following returns *all* files on my disk:

> query -a "last_modified > %now%"

I'm fairly certain that none of the files on my disk are from the future. Running something like this also returns all files:

> query -a "last_modified > 7/23/2030"

Since indexing every file on disk was taking a long time, I changed my query to "name = *.txt" for debugging purposes. Then I noticed that a couple of files were showing up repeatedly in the live query. The indexer was indexing the same files endlessly.

I have three BFS volumes on my PC. chekfs runs on two of them without any hiccups. Running chekfs on the third volume, however, drops me into the kernel debugger. (Note that there are no files matching "name = *.txt" on the third volume).

What could be the problem here? A bug in the filesystem code or a disk corruption?

NOTE: I still haven't tested the Beacon code in a VMWare image. I'll do that and see if something similar happens in the VM or not.

---
Salut,
General Maximus

Other related posts: