QStorageInfo: mention bind mounts and btrfs subvolumes in API docs

Sepcifically in the subvolume() method's docs.

Change-Id: Ib14492f8366bf00a6a4ab399ff8ad20009be5886
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: hjk <hjk@qt.io>
bb10
Ahmad Samir 2023-03-27 19:44:04 +02:00
parent b58606ed85
commit 595112ea50
1 changed files with 4 additions and 3 deletions

View File

@ -241,9 +241,10 @@ QByteArray QStorageInfo::device() const
Returns the subvolume name for this volume.
Some filesystem types allow multiple subvolumes inside one device, which
may be mounted in different paths. If the subvolume could be detected, it
is returned here. The format of the subvolume name is specific to each
filesystem type.
may be mounted in different paths (e.g. 'bind' mounts on Unix, or Btrfs
filesystem subvolumes). If the subvolume could be detected, its name is
returned by this function. The format of the subvolume name is specific
to each filesystem type.
If this volume was not mounted from a subvolume of a larger filesystem or
if the subvolume could not be detected, this function returns an empty byte