Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-38148

QStorageInfo: Implement QString uuidForDrive(const QString &drive) similar for uriForDrive(...)

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Invalid
    • Not Evaluated
    • None
    • None
    • None
    • any

    Description

      For qt / qtsystems we have method uriForDrive(...) for QStorageInfo (systeminfo).
      It works well (and usable, for example, for mounting volumes), but what about to implement similar method for getting real storage partitions UUID's?
      I mean when we using uriForDrive(...) method we getting different uri-values for storage partition in different operating systems.
      Different OSes (expect linux-based I suppose) uses their own unique identifiers, even though the most popular filesystem formats supports having partition UUID at their superblock (don’t know about all the filesystem formats though)
      So I suppose it would be nice to implement new QSystemStorage method, similar to uriForDrive(…), that returns OS-independent UUID for filesystem partition (volume), that is stored at filesystem superblock. So developer could recognize similar removable device volumes at any OS.
      Here's more info and my attempt to implement it: http://aa13q.ru/2014/04/06/qt-qtsystems-qstrorageinfo-better-uuids-support.html
      Sorry if I made mistakes, any advice will be very helpful.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lpotter Lorn Potter
            yetanotherandreyev Alexey Andreyev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes