[Development] QStorageinfo changes: a bug.
Shawn Rutledge
Shawn.Rutledge at qt.io
Mon Jun 20 14:48:34 CEST 2016
> On 20 Jun 2016, at 11:45, Stef Bon <stefbon at gmail.com> wrote:
>
> Hi,
>
> I've found aout that the qstorageinfo has changed recently. I'v got a
> fuse filesystem and a qt gui using that filesystem. To detect the
> mountpoint the gui uses QStorageInfo::mountedVolumes() and walk this
> list.
>
> This worked until recently, now the fuse is not found anymore. I've
> found out that the function
> isPseudoFs has been changed, and every fs where the device does not
> start with a slash is a pseudofs. Huhhh? This is far too strict.
>
> The manpage of mount describes for the device (or source):
>
> mount() attaches the filesystem specified by source (which is often a
> device name, but can also be a directory name or a dummy) to the
> directory specified by target.
>
> So there are no restrictions here it has to start with a slash. And
> the source --can-- be something abstract, and not a device.
Apparently you are referring to https://codereview.qt-project.org/#/c/141217/
Please report a bug, and give any ideas you have for deciding what is a pseudo-fs and what isn’t. I don’t think we can say that every FUSE filesystem falls into either category, right?
More information about the Development
mailing list