- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: question on program use of "mount(*filesystem,...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2004 02:48 PM
03-18-2004 02:48 PM
question on program use of "mount(*filesystem, *dir) always busy
a CD device:
"mount /dev/dsk/c201d4s0 /cdrom"
however, in a C program,
"mount("/dev/dsk/c201d4s0", "/cdrom", M_RDONLY);
always returns ERRNO for busy?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2004 05:24 PM
03-18-2004 05:24 PM
Re: question on program use of "mount(*filesystem, *dir) always busy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2004 06:55 PM
03-18-2004 06:55 PM
Re: question on program use of "mount(*filesystem, *dir) always busy
also you could do a umount on the device prior to the mount or maybe test to see if the device is mounted.
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 08:46 AM
03-19-2004 08:46 AM
Re: question on program use of "mount(*filesystem, *dir) always busy
However, if the device is already mounted it prints a message to the console indicating this, although it can still be accessed.
What is the best way to check to see if the device is already mounted?
If a 'umount' is done on the device and it is already unmounted, a message to the console displays an error condition too.
thank you for the replies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 08:54 AM
03-19-2004 08:54 AM
Re: question on program use of "mount(*filesystem, *dir) always busy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 03:46 AM
03-25-2004 03:46 AM
Re: question on program use of "mount(*filesystem, *dir) always busy
one more issue is that under HP-UX
9.03, the C compiler I'm using
(like c89) does not allow-
(struct mnent *) variable = getmntent(fp);
with warning: "integral value implicitly
converter to pointer in assignment"
and subsequently, the structure fields
such as 'char *mnt_dir' cannot be accessed.
However, 'cc' vs 'c89' works fine?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 03:55 AM
03-25-2004 03:55 AM
Re: question on program use of "mount(*filesystem, *dir) always busy
And yes, I pull out my baseball bat to adjust programmers for this kind of stuff.