Store inode numbers in decimal notation

ls(1) with the -i option and stat(1) show inode numbers in decimal. If
anyone ever tries debugging this problem, we should present the
information that other tools would show too.

Change-Id: I54b24edba5b028cc86744ca302ab918f8baa2d2b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
Thiago Macieira 2013-01-15 11:14:31 -08:00 committed by The Qt Project
parent d94ac55a01
commit 0d0213f926

View File

@ -270,7 +270,7 @@ QByteArray QFileSystemEngine::id(const QFileSystemEntry &entry)
}
QByteArray result = QByteArray::number(quint64(statResult.st_dev), 16);
result += ':';
result += QByteArray::number(quint64(statResult.st_ino), 16);
result += QByteArray::number(quint64(statResult.st_ino));
return result;
}