From: Christoph Hellwig <hch@lst.de>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] Re: [Ocfs2-commits] bryce commits r1573 - in trunk: . mount.ocfs
Date: Thu Oct 14 13:50:35 2004 [thread overview]
Message-ID: <20041014185029.GA31796@lst.de> (raw)
In-Reply-To: <200410141425.i9EEPDZS029376@oss.oracle.com>
> +int module_loaded(char * module) {
> + int fd;
> + int i;
> + char line[100];
> +
> + if ((fd = open("/proc/modules", O_RDONLY)) >= 0 ) {
> + while ((i = read(fd, line, 100)) > 0) {
> + if (strstr(line, module) != 0) {
> + close(fd);
> + return (1);
> + }
> + close(fd);
> + return (0);
> + }
> + }
> +}
this check is bogus, the kernel will autload a filesystem on the first
mount attempt.
next parent reply other threads:[~2004-10-14 13:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200410141425.i9EEPDZS029376@oss.oracle.com>
2004-10-14 13:50 ` Christoph Hellwig [this message]
2004-10-15 22:44 ` [Ocfs2-devel] Re: [Ocfs2-commits] bryce commits r1573 - in trunk: . mount.ocfs Joel Becker
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=20041014185029.GA31796@lst.de \
--to=hch@lst.de \
--cc=ocfs2-devel@oss.oracle.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.