From: "Joseph D. Wagner" <theman@josephdwagner.info>
To: Glynn Clements <glynn.clements@virgin.net>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: Remounting File Systems
Date: Fri, 21 Nov 2003 00:03:16 +0600 [thread overview]
Message-ID: <200311210003.16602.theman@josephdwagner.info> (raw)
In-Reply-To: <16317.39189.496548.293593@cerise.nosuchdomain.co.uk>
> > I'm writing a program that has to remount a file system on the fly for
> > the purpose of changing the mount flags.
> >
> > Is there any system function that can tell me what the mount flags are
> > for a currently mounted file system?
>
> setmntent/getmntent/endmntent, possibly in conjunction with hasmntopt.
Nice try, but there's still the unlikely chance that /etc/fstab or /etc/mtab
have not been updated to reflect the CURRENTLY MOUNTED file system.
Joseph D. Wagner
next prev parent reply other threads:[~2003-11-20 18:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-20 16:41 Remounting File Systems Joseph D. Wagner
2003-11-21 4:48 ` Glynn Clements
2003-11-20 18:03 ` Joseph D. Wagner [this message]
2003-11-21 7:59 ` Glynn Clements
2003-11-21 17:03 ` Jamie LeTual
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200311210003.16602.theman@josephdwagner.info \
--to=theman@josephdwagner.info \
--cc=glynn.clements@virgin.net \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).