From: Hareesh Nagarajan <hnagar2@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: register_filesystem(): Why does it return -EBUSY?
Date: Sun, 30 Oct 2005 00:45:12 -0500 [thread overview]
Message-ID: <43645DE8.6030207@gmail.com> (raw)
If we have a look at the register_filesystem() function defined in
fs/filesystems.c, we see that if a filesystem with a same name has
already been registered then find_filesystem will return NON-NULL
otherwise it will return NULL. So shouldn't 'res' be set to -EEXIST
instead of -EBUSY? What is the reasoning behind register_filesystem
returning -EBUSY for this particular condition?
int register_filesystem(struct file_system_type * fs) { ...
struct file_system_type ** p;
...
p = find_filesystem(fs->name);
if (*p)
res = -EBUSY; <-- Shouldn't this be -EEXIST?
else
*p = fs;
...
return res;
}
Thanks,
Hareesh Nagarajan
reply other threads:[~2005-10-30 5:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=43645DE8.6030207@gmail.com \
--to=hnagar2@gmail.com \
--cc=linux-kernel@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