From: David Jander <david.jander@protonic.nl>
To: "Petr Vandrovec" <VANDROVE@vc.cvut.cz>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ncpfs, kernel 2.4.18
Date: Fri, 4 Apr 2003 14:33:42 +0200 [thread overview]
Message-ID: <200304041433.42481.david.jander@protonic.nl> (raw)
In-Reply-To: <64319A7E14@vcnet.vc.cvut.cz>
On Friday 04 April 2003 13:45, Petr Vandrovec wrote:
> What they say? It is completely legal to use NULL path in ncp_obtain_info,
> and in reality ncp_obtain_mtime() in fs/ncpfs/dir.c uses NULL path
> explicitly (and it also checks for 'ncp_is_server_root(inode)', at least
> in 2.5.66 and 2.4.19). See ncp_add_handle_path, it contains code which
> converts NULL path to no path at all.
>
> Do not you just have loaded some misguided antivirus software on your
> server? ncpfs uses inode based addressing scheme, where files are accessed
> by their numbers instead of name. Only thing which accesses files by name
> are validating functions, for converting name to number, and unlink
> (because of 4.x servers crash when unlink by inode is invoked on NFS
> namespace). Petr Vandrovec
I don't use any anti-virus software, but from what you say, I may conclude the
following:
When listing a directory with "ls", the function ncp_obtain_info() is called
once for each entry in that directory, plus one time for the directory itself
and (presumably) one time for the directory therunder (".." ?).
If you do this for a volume-root, you are trying to get the Original
Name-Space of a directory under the volume, which makes the Netware-3.12
server bark.
The error I am getting on the server goes like this:
"GetOriginalNameSpace could not find the originating name space. DOS name was
assumed. Use vrepair to fix this!"
If NULL paths are legal, then the problem lies elsewere (of course it does !).
If you could give me some pointers on where to look, I'll try to find out how
to make ncpfs not call ncp_obtain_info() for the directory under a volume.
Putting the check directly into ncp_obtain_info() doesn't seem a good place
to me....
BTW, I am also having another problem with listing the directory contents of
the directory where the Novell Server was mounted. I don't know if I will
have time to get to the ground of this though, since it looks like a problem
with the driver not handling i-nodes correctly with newer kernels. I get this
behaviour:
-------------- CUT HERE ---------------------
linux:/mnt/Novell # ls -l
ls: .: Stale NFS file handle
linux:/mnt/Novell # cd ..
linux:/mnt # ls -l Novell/
ls: Novell/.: Stale NFS file handle
total 3
drwxr-xr-x 7 root root 143 Feb 19 20:43 ..
drwxrwxr-x 1 david users 512 Dec 31 1985 cdroms
drwxrwxr-x 1 david users 512 Dec 31 1985 dataflex
drwxrwxr-x 1 david users 512 Dec 31 1985 engineer
drwxrwxr-x 1 david users 512 Dec 31 1985 programs
drwxrwxr-x 1 david users 512 Dec 31 1985 sys
drwxrwxr-x 1 david users 512 Dec 31 1985 sys1
linux:/mnt #
-------------- CUT HERE -----------------------
Thanks for the reaction...
--
David Jander
next prev parent reply other threads:[~2003-04-04 12:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-04 11:45 Petr Vandrovec
2003-04-04 12:33 ` David Jander [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-04-04 13:23 Petr Vandrovec
2003-04-04 11:24 David Jander
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=200304041433.42481.david.jander@protonic.nl \
--to=david.jander@protonic.nl \
--cc=VANDROVE@vc.cvut.cz \
--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
all inboxes | Powered by JetHome®