Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

Check the mount point of a file
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: Check the mount point of a file
  • SDP: 8.0.0, 7.1.0, 7.0.0, 6.6.0, 6.5.0
  • Target: Any supported target
________________________________________________________________________

Solution
________________________________________________________________________

On QNX, you can mount multiple file systems and also have multiple Image File Systems (IFS), which represent files in a file system structure. It can be difficult to find the resource manager responsible for a file.

The whichdev program (source attached) takes the given path and prints out information about the file owner. It does this by calling devctl()'s with the DCMD_FSYS_MOUNTED_AT and DCMD_FSYS_MOUNTED_ON. See our documentation for more information on these commands.

You can also run into a problem that a file is read-only and the reason is that it is located in the read-only IFS. In these cases it handy to know the resource manager that handles a file.

Please review the usage information for reference.

________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 Attachment Name Size Last Modified
 whichdev.use 128 bytes 3/5/2024 3:17 PM
 whichdev.c 4KB 3/5/2024 3:17 PM





Please contact us with your questions or concerns.