Re: [autofs] Autofs dump map option

2011-08-16 Thread Ondrej Valousek
Hi Ian, Thanks for the quick help - it works, indeed. Funny thing: - The original patch I have submitted some time ago which was implementing the dump map option for the first time did not dump (without your patch) indirect maps either. - Your official patch implementing the dump map option

Re: [autofs] [PATCH] autofs4: Use no_printk() for no-op DPRINTK() and use __VA_ARGS__ too

2011-08-16 Thread Linus Torvalds
On Mon, Aug 8, 2011 at 8:10 AM, David Howells dhowe...@redhat.com wrote: Use no_printk() for autofs's no-op DPRINTK() to prevent unused statements from becoming accidentally obsolete, and use __VA_ARGS__ too as that's the standard way. Gaah. May I suggest just avoiding the duplication by doing

Re: [autofs] [PATCH] autofs4: Use no_printk() for no-op DPRINTK() and use __VA_ARGS__ too

2011-08-16 Thread Joe Perches
On Mon, 2011-08-08 at 16:10 +0100, David Howells wrote: Use no_printk() for autofs's no-op DPRINTK() to prevent unused statements from becoming accidentally obsolete, and use __VA_ARGS__ too as that's the standard way. [] diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h index

[autofs] [PATCH] autofs4: Use pr_fmt and pr_level

2011-08-16 Thread Joe Perches
Use the standard logging forms. All logging entries are not prefixed with autofs4: via pr_fmt. Convert printks without KERN_LEVEL to pr_info and pr_err. Convert AUTOFS_WARN and AUTOFS_ERROR to pr_warn and pr_err. Use a specific pr_fmt to add __func__ and pid to the single source file where

[autofs] autofs, closing file error.

2011-08-16 Thread wusheng zhang
Dear list: I am not sure, it is suitable posing the message to this list. But this obsessed me for a long time. Problem description: I am running a fortran program, that doing some computation works and saves data to the working directory. I started the program at an automounted directory,

Re: [autofs] autofs4 past 2.6.38: how to make it work?

2011-08-16 Thread Michael Tokarev
After searching a bit more, especially after realizing it's not 2.6.37+ but 2.6.38+ (so I corrected $subject), I found a few references to this, especially https://bugzilla.redhat.com/show_bug.cgi?id=719607 and a few more (most of which are without answers). I tested the patch proposed in

[autofs] autofs4 past 2.6.37: how to make it work?

2011-08-16 Thread Michael Tokarev
Hello. I found out that since 2.6.37 kernel, my automount (neither debian version 5.0.4-3.2 nor the latest 5.0.6) does not work anymore. Automounter starts correctly, mounts - say - /misc, and stays there listening for events. But the problem is that no events gets delivered to it no matter how

[autofs] Problem Mounting CD Drive

2011-08-16 Thread Thanh Tran
I've been having some problems with mounting my CD drive since I updated to Fedora 12. I get this from the log. Aug 16 06:57:11 nextgen-mm automount[769]: mount(generic): mounted /dev/scd0 type auto on /mnt/cdrom/cdrom Aug 16 06:57:11 nextgen-mm automount[769]: mounted /mnt/cdrom/cdrom Aug 16

Re: [autofs] autofs, closing file error.

2011-08-16 Thread Denniston, Todd A CIV NAVSURFWARCENDIV Crane
-Original Message- From: autofs-boun...@linux.kernel.org [mailto:autofs- boun...@linux.kernel.org] On Behalf Of wusheng zhang Sent: Saturday, August 13, 2011 9:04 To: autofs@linux.kernel.org Subject: [autofs] autofs, closing file error. Dear list: I am not sure, it is suitable

Re: [autofs] autofs4 past 2.6.38: how to make it work?

2011-08-16 Thread Ian Kent
On Tue, 2011-08-16 at 00:02 +0400, Michael Tokarev wrote: After searching a bit more, especially after realizing it's not 2.6.37+ but 2.6.38+ (so I corrected $subject), I found a few references to this, especially https://bugzilla.redhat.com/show_bug.cgi?id=719607 and a few more (most of