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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes