]> git.notmuchmail.org Git - notmuch/blob - test/corpora/lkml/cur/1382298770.002930:2,
Import notmuch_0.27.orig.tar.gz
[notmuch] / test / corpora / lkml / cur / 1382298770.002930:2,
1 From: David Howells <dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2 Subject: Re: [RFC][PATCH 05/10] cifs: define superblock-level cache index objects and register them
3 Date: Fri, 25 Jun 2010 14:26:52 +0100
4 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley
5         Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United
6         Kingdom.
7         Registered in England and Wales under Company Registration No. 3798903
8 Lines: 35
9 Message-ID: <23204.1277472412@redhat.com>
10 References: <22746.1277470713@redhat.com> <4C24A4A0.90408@suse.de> <1277220206-3559-1-git-send-email-sjayaraman@suse.de> <yes> <9720.1277312290@redhat.com>
11 Cc: dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, Suresh Jayaraman <sjayaraman-l3A5Bk7waGM@public.gmane.org>,
12         Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>, linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
13         linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
14 To: unlisted-recipients:; (no To-header on input)
15 X-From: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Fri Jun 25 15:27:01 2010
16 Return-path: <linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
17 Envelope-to: glkc-linux-cifs-1dZseelyfdZg9hUCZPvPmw@public.gmane.org
18 Received: from vger.kernel.org ([209.132.180.67])
19         by lo.gmane.org with esmtp (Exim 4.69)
20         (envelope-from <linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>)
21         id 1OS8vt-0000Xv-FL
22         for glkc-linux-cifs-1dZseelyfdZg9hUCZPvPmw@public.gmane.org; Fri, 25 Jun 2010 15:27:01 +0200
23 Received: (majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org) by vger.kernel.org via listexpand
24         id S1755944Ab0FYN1A (ORCPT <rfc822;glkc-linux-cifs@m.gmane.org>);
25         Fri, 25 Jun 2010 09:27:00 -0400
26 Received: from mx1.redhat.com ([209.132.183.28]:15634 "EHLO mx1.redhat.com"
27         rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP
28         id S1755398Ab0FYN07 (ORCPT <rfc822;linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>);
29         Fri, 25 Jun 2010 09:26:59 -0400
30 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17])
31         by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5PDQu1D020638
32         (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
33         Fri, 25 Jun 2010 09:26:56 -0400
34 Received: from redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1])
35         by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5PDQruU018472;
36         Fri, 25 Jun 2010 09:26:54 -0400
37 In-Reply-To: <22746.1277470713-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
38 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17
39 Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
40 Precedence: bulk
41 List-ID: <linux-cifs.vger.kernel.org>
42 X-Mailing-List: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
43 Archived-At: <http://permalink.gmane.org/gmane.linux.kernel/1002964>
44
45 David Howells <dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
46
47 > > > validate the root directory of the share in some way?
48 > >
49 > > I don't know if there is a way to do this.
50
51 > Is there an inode number or something?  Even the creation time might do.
52
53 Looking in cifspdu.h, there are a number of things that it might be possible
54 to use.
55
56  (1) FILE_ALL_INFO: CreationTime, IndexNumber, IndexNumber1, FileName
57      (assuming this isn't flattened to '\' or something for the root of a
58      share.
59
60  (2) FILE_UNIX_BASIC_INFO: DevMajor, DevMinor, UniqueId.
61
62  (3) FILE_INFO_STANDARD: CreationDate, CreationTime.
63
64  (4) FILE_INFO_BASIC: CreationTime.
65
66  (5) FILE_DIRECTORY_INFO: FileIndex, CreationTime, FileName.
67
68  (6) SEARCH_ID_FULL_DIR_INFO: FileIndex, CreationTime, UniqueId, FileName.
69
70  (7) FILE_BOTH_DIRECTORY_INFO: FileIndex, CreationTime, ShortName, FileName.
71
72  (8) OPEN_RSP_EXT: Fid, CreationTime, VolumeGUID, FileId.
73
74 You may have to choose different sets of things, depending on what the server
75 has on offer.  Also, don't forget, if you can't work out whether a share is
76 coherent or not from the above, you can always use LastWriteTime, ChangeTime
77 and EndOfFile and just discard the whole subtree if they differ.
78
79 David
80
81