- struct statfs Buf;
- if (statfs(CD.c_str(),&Buf) != 0)
- return _error->Errno("statfs","Failed to stat the cdrom");
-
- // We use a kilobyte block size to advoid overflow
- sprintf(S,"%u %u",Buf.f_blocks*(Buf.f_bsize/1024),
- Buf.f_bfree*(Buf.f_bsize/1024));
- Hash.Add(S);
+ if (_config->FindB("Debug::identcdrom",false) == false)
+ {
+ struct statvfs Buf;
+ if (statvfs(CD.c_str(),&Buf) != 0)
+ return _error->Errno("statfs",_("Failed to stat the cdrom"));
+
+ // We use a kilobyte block size to advoid overflow
+ sprintf(S,"%lu %lu",(long)(Buf.f_blocks*(Buf.f_bsize/1024)),
+ (long)(Buf.f_bfree*(Buf.f_bsize/1024)));
+ Hash.Add(S);
+ sprintf(S,"-%u",Version);
+ }
+ else
+ sprintf(S,"-%u.debug",Version);