Skip to contentSkip to conversation

false positives on disk change checks

DISCUSSION Joerg Pommnitz 2 participants 2 messages Feb 1, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines · I wrote:

I don't know the original posters problem, but I suspect I see something similar. On a to be embedded system with a Geode (Cyrix) CPU and with a ATA compatible CompactFlash drive I get the following messages on bootup:

invalidate: busy buffer
VFS: busy inodes on changed media.

This seems to happen while the system tries to remount the root fs rw.

The following patch works around the problem for me:

diff -ruN linux/drivers/ide/ide-probe.c
linux-scorpio/drivers/ide/ide-probe.c

drivers/ide/ide-probe.c Fri Feb 1 12:06:59 2002 renamed from drivers/ide/ide-probe.c Mon Nov 26 14:29:17 2001 +3 -0
@@ -154,11 +154,14 @@
                return;
        }
 
+#if 0
        /*
         * Not an ATAPI device: looks like a "regular" hard disk
         */
        if (id->config & (1<<7))
                drive->removable = 1;
+#endif
+
        /*
         * Prevent long system lockup probing later for non-existant
         * slave drive if the hwif is actually a flash memory card of some

variety:

It's obviously not a general solution but I know for sure that the flashdisk is not removable in our setup.

Regards
Joerg

=====

Signature · 8 lines
Regards
       Joerg


__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com
#1 lore raw
Quoted 35 lines · Joerg Pommnitz
Quoted 9 lines · I wrote:

I don't know the original posters problem, but I suspect I see something similar. On a to be embedded system with a Geode (Cyrix) CPU and with a ATA compatible CompactFlash drive I get the following messages on bootup:

invalidate: busy buffer
VFS: busy inodes on changed media.

This seems to happen while the system tries to remount the root fs rw.

The following patch works around the problem for me:

diff -ruN linux/drivers/ide/ide-probe.c
linux-scorpio/drivers/ide/ide-probe.c

drivers/ide/ide-probe.c Fri Feb 1 12:06:59 2002 renamed from drivers/ide/ide-probe.c Mon Nov 26 14:29:17 2001 +3 -0
@@ -154,11 +154,14 @@
                return;
        }
 
+#if 0
        /*
         * Not an ATAPI device: looks like a "regular" hard disk
         */
        if (id->config & (1<<7))
                drive->removable = 1;
+#endif
+
        /*
         * Prevent long system lockup probing later for non-existant
         * slave drive if the hwif is actually a flash memory card of some

variety:

Quoted 2 lines

It's obviously not a general solution but I know for sure that the flashdisk is not removable in our setup.

REGARDLESS, it is removable media and this it reports so. The driver will not change to create false reports, because CFA has its own rules, and if you can figure them out great.

Removable media shall always report as Removable media.

If you purchase enough of the media, the OEM will allow you to alter the identify page and this it will not longer report "Removable".

Regards,

Andre Hedrick
Linux Disk Certification Project Linux ATA Development