Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755142Ab0FYKsY (ORCPT ); Fri, 25 Jun 2010 06:48:24 -0400 Received: from cantor.suse.de ([195.135.220.2]:46395 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752612Ab0FYKsW (ORCPT ); Fri, 25 Jun 2010 06:48:22 -0400 Message-ID: <4C24896C.4000903@suse.de> Date: Fri, 25 Jun 2010 16:18:12 +0530 From: Suresh Jayaraman User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091130 SUSE/3.0.0-1.1.1 Thunderbird/3.0 MIME-Version: 1.0 To: Scott Lovenberg Cc: Steve French , linux-cifs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, David Howells Subject: Re: [RFC][PATCH 10/10] cifs: add mount option to enable local caching References: <1277220309-3757-1-git-send-email-sjayaraman@suse.de> <4C225338.9010807@gmail.com> In-Reply-To: <4C225338.9010807@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2004 Lines: 52 On 06/24/2010 12:02 AM, Scott Lovenberg wrote: > On 6/22/2010 11:25 AM, Suresh Jayaraman wrote: >> Add a mount option 'fsc' to enable local caching on CIFS. >> >> As the cifs-utils (userspace) changes are not done yet, this patch >> enables >> 'fsc' by default to assist testing. >> > [...] >> @@ -1332,6 +1336,8 @@ cifs_parse_mount_options(char *options, const >> char *devname, >> printk(KERN_WARNING "CIFS: Mount option noac not " >> "supported. Instead set " >> "/proc/fs/cifs/LookupCacheEnabled to 0\n"); >> + } else if (strnicmp(data, "fsc", 3) == 0) { >> + vol->fsc = true; >> } else >> printk(KERN_WARNING "CIFS: Unknown mount option %s\n", >> data); >> @@ -2405,6 +2411,8 @@ static void setup_cifs_sb(struct smb_vol >> *pvolume_info, >> cifs_sb->mnt_cifs_flags |= CIFS_MOUNT_OVERR_GID; >> if (pvolume_info->dynperm) >> cifs_sb->mnt_cifs_flags |= CIFS_MOUNT_DYNPERM; >> + if (pvolume_info->fsc) >> + cifs_sb->mnt_cifs_flags |= CIFS_MOUNT_FSCACHE; >> if (pvolume_info->direct_io) { >> cFYI(1, "mounting share using direct i/o"); >> cifs_sb->mnt_cifs_flags |= CIFS_MOUNT_DIRECT_IO; >> > I reworked the CIFS mount option parsing a while back; I'm not sure > whether that patch was going to be in the 2.6.35 tree or not (the window > just opened, didn't it?). Not a problem, I could redo this patch alone when the reworked option parsing patches get in. > Jeff, Steve, can you confirm if that patch is going to be in 2.6.35? > > Patch refs: http://patchwork.ozlabs.org/patch/53059/ and > http://patchwork.ozlabs.org/patch/53674/ > Thanks, -- Suresh Jayaraman -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/