Skip navigation.
Home
The QNX Community Portal

View topic - Mounted Folder - What is the SOurce?

Mounted Folder - What is the SOurce?

For the old QNX2 and QNX4 RTOS

Mounted Folder - What is the SOurce?

Postby MisDept » Wed Mar 13, 2013 7:44 pm

This must be so simple, that no one talks about it - at least I can't find info via Google Search!

I have a mounted folder - /931share in which I see 4 files.

I'm trying to determine WHERE thie mount point is? What is it connected to?

I tried df, df -a, df -d, etc.

Is there a command, or perhaps a files, that links a mounted folder to it's source?

Thx

Kim
MisDept
Active Member
 
Posts: 17
Joined: Tue May 17, 2005 7:28 pm

Re: Mounted Folder - What is the SOurce?

Postby mario » Wed Mar 13, 2013 10:54 pm

mount
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

Re: Mounted Folder - What is the SOurce?

Postby MisDept » Thu Mar 14, 2013 1:26 am

Thanks for replying.

Tried that - but all it showed me, for this mount (in fact - for any of them), was "/931share".

In fact, as it turns out - this is an SMB share to a WIndows shared folder.

But I would never have been able to figure it out with the results returned with DF and mount.

Fortunately, since I had set up this mount last week - I figured it was either to the SMB share, or to a created folder on the same system (as I was testing).

I guess I was hoping for a result set something like:
/931share -----> dell000931\QNXBackups\

something very clear.

I can see this could be an issue for DOS devices also, as I may have one for the floppy, one for the USB flash drive, and one for a USB external HD.

Certainly moving forward documenting these in sysinit is one way to go - but as I was testing with this one (/931share), I didn't document as well as I could have - therefore looking for information from the system itself.
MisDept
Active Member
 
Posts: 17
Joined: Tue May 17, 2005 7:28 pm

Re: Mounted Folder - What is the SOurce?

Postby Jim_Millington » Tue Mar 26, 2013 3:21 pm

try "fullpath /931share"
Jim_Millington
Active Member
 
Posts: 10
Joined: Fri May 20, 2005 11:05 am

Re: Mounted Folder - What is the SOurce?

Postby MisDept » Fri Mar 29, 2013 1:19 am

I had high hopes when I saw your replay - but sadly, it only returned:
931share is //1/931share

I'm sure the info is SOMEWHERE or else it wouldn't be able to find the SMB share on Windows - just haven't found where yet.

Thx for your input.
MisDept
Active Member
 
Posts: 17
Joined: Tue May 17, 2005 7:28 pm

Re: Mounted Folder - What is the SOurce?

Postby maschoen » Fri Mar 29, 2013 7:53 am

I suspect (not really sure) that if you call open on /931share and then do an lstat() on it, there might be a hint.

Another thought is that the fd returned from open() is a QNX connection-id. Using this information it might be possible to figure out which resource manager is managing the device.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Re: Mounted Folder - What is the SOurce?

Postby Jim_Millington » Tue Apr 02, 2013 2:00 pm

I have had share for other drives create directories at the share point in the past, later the mount replaces it, but generally it has happened when I've had something write to the share before it was mounted.
Jim_Millington
Active Member
 
Posts: 10
Joined: Fri May 20, 2005 11:05 am

Re: Mounted Folder - What is the SOurce?

Postby maschoen » Tue Apr 02, 2013 4:10 pm

Jim_Millington wrote:I have had share for other drives create directories at the share point in the past, later the mount replaces it, but generally it has happened when I've had something write to the share before it was mounted.


I don't know exactly what you are trying to say here, but you brought up a point which I think should be mentioned.
With QNX 6 there is no contradiction in multiple resource managers sharing the same name space.
This can cause confusing results, but can also be very handy. Usually the priority is that whoever got there last is first in line.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm


Return to QNX2 and QNX4

Who is online

Users browsing this forum: No registered users and 5 guests