From 5088d775fe68ac0dd1b6b9923ab66d30ce1d848a Mon Sep 17 00:00:00 2001 From: kergoth Date: Fri, 28 Mar 2003 07:50:40 +0000 Subject: Ensure StorageInfo picks up /dev/root --- (limited to 'library/storage.cpp') diff --git a/library/storage.cpp b/library/storage.cpp index 912b22d..f4c1c02 100644 --- a/library/storage.cpp +++ b/library/storage.cpp @@ -111,7 +111,7 @@ void StorageInfo::update() if ( fs.left(7)=="/dev/hd" || fs.left(7)=="/dev/sd" || fs.left(8)=="/dev/mtd" || fs.left(9) == "/dev/mmcd" || fs.left( 14 ) == "/dev/mmc/part1" - || fs.left(5)=="tmpfs" ) + || fs.left(5)=="tmpfs" || fs.left(9)=="/dev/root" ) { n++; curdisks.append(fs); @@ -165,6 +165,8 @@ void StorageInfo::update() humanname = tr("Internal Storage") + " " + disk; else if ( disk.left(13) == "/dev/mtdblock" ) humanname = tr("Internal Storage") + " " + disk; + else if ( disk.left(9) == "/dev/root" ) + humanname = tr("Internal Storage") + " " + disk; else if ( disk.left(5) == "tmpfs" ) //ipaqs /mnt/ramfs humanname = tr("Internal Memory"); FileSystem *fs = new FileSystem( disk, *fsit, humanname, removable, opts ); -- cgit v0.9.0.2