From: Juergen Hasch <lkml@elbonia.de>
To: Christoph Hellwig <hch@infradead.org>
Cc: Michael Welles <mike@bangstate.com>, linux-kernel@vger.kernel.org
Subject: Re: Using get_cwd inside a module.
Date: Sat, 22 Nov 2003 11:45:39 +0100 [thread overview]
Message-ID: <200311221145.39585.lkml@elbonia.de> (raw)
In-Reply-To: <20031122101559.A30932@infradead.org>
Am Samstag, 22. November 2003 11:15 schrieb Christoph Hellwig:
> On Sat, Nov 22, 2003 at 10:33:34AM +0100, Juergen Hasch wrote:
> > Am Samstag, 22. November 2003 09:30 schrieb Christoph Hellwig:
> > > The basic problem is that you shouldn't call syscalls from kernelspace.
> > > Have you looked at dnotify to look for changed files instead?
> >
> > Dnotify doesn't return the file names that changed, changedfiles does.
> > I've looked into this, because Samba would benefit from such a
> > functionality.
> >
> > So maybe it would be possible to teach dnotify to return file names
> > (e.g. using netlink) ?
>
> Well, you can't return filenames. There's no unique path to a give
> file.
>
> What are the exact requirements of changedfiles or samba?
Samba needs to be able to notify a client machine, when a file in a
directory changes (i.e. is added/removed/modified/renamed). The directory
to be watched is given by the client and can include subdirectories.
Right now Samba on Linux uses dnotify to watch the given directory
and just returns an error (too many files changed). The client has
to find out for itself which files changed.
This breaks certain user applications (e.g. IIS), because they rely
on getting the file names back from Samba.
I have a patch which makes a copy of all directory information on
each dnotify event and looks for the changed files. This works but
obviously doesn't scale too well for many files in a directory.
...Juergen
next prev parent reply other threads:[~2003-11-22 10:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-22 0:05 Michael Welles
2003-11-22 0:32 ` Maciej Zenczykowski
2003-11-22 12:30 ` Szymon Acedański
2003-11-22 8:30 ` Christoph Hellwig
2003-11-22 9:33 ` Juergen Hasch
2003-11-22 10:15 ` Christoph Hellwig
2003-11-22 10:45 ` Juergen Hasch [this message]
2003-11-22 11:04 ` Christoph Hellwig
2003-11-22 17:22 ` Michael Welles
2003-11-23 19:40 ` Juergen Hasch
2003-11-22 11:48 ` Andreas Dilger
2003-11-23 19:41 ` Juergen Hasch
2003-11-22 17:15 ` Michael Welles
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=200311221145.39585.lkml@elbonia.de \
--to=lkml@elbonia.de \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mike@bangstate.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 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®