| To: | Dean Roehrich <dean.roehrich@xxxxxxx> |
|---|---|
| Subject: | Re: review: Simple patch to remove the dmapi support from xfsdump |
| From: | Bill Kendall <wkendall@xxxxxxx> |
| Date: | Mon, 07 Aug 2006 14:13:38 -0500 |
| Cc: | Chris Wedgwood <cw@xxxxxxxx>, Russell Cattelan <cattelan@xxxxxxxxxxx>, Vlad Apostolov <vapo@xxxxxxx>, xfs@xxxxxxxxxxx |
| In-reply-to: | <20060807165159.GA10521@xxxxxxxxxxxxxxxxxxxxxxxxxxx> |
| References: | <44D2CA85.3040208@xxxxxxx> <20060804141012.GA26@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <44D36985.1090006@xxxxxxxxxxx> <20060804155850.GA3338@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <44D379A6.9040200@xxxxxxx> <44D38D34.1010503@xxxxxxxxxxx> <44D3C351.7060109@xxxxxxx> <20060807150324.GA8421@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <44D75C87.8050402@xxxxxxxxxxx> <20060807155248.GA22411@xxxxxxxxxxxxxxxxxxxxx> <20060807165159.GA10521@xxxxxxxxxxxxxxxxxxxxxxxxxxx> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mail/News 1.5 (X11/20060228) |
On 08/07/06 11:51, Dean Roehrich wrote: On Mon, Aug 07, 2006 at 08:52:48AM -0700, Chris Wedgwood wrote:On Mon, Aug 07, 2006 at 10:30:15AM -0500, Russell Cattelan wrote:It seems rather dangerous to have a #define floating around that could potentially get out of sync with the original, especially if you transport the number and not the enum table. (It make it really hard for cscope to find :-)If it saves a header I don't see any harm in the original approach with a comment preceding it explain what the bits are and why not to screw them up.I agree with Russell that you want cscope to tell you about every place those bits are being used, so you want those defines or at least those symbols to show up here. Having them in a comment won't help cscope. Dean I'll put these defines in hsmapi.c, and revert DMF_EV_BITS back to using these symbols: /* DM_EVENT_* are defined in <xfs/dmapi.h>. Trying to avoid a dmapi dependency * in xfsdump since dmapi is not commonly used, yet this code needs to know some * of the event bits. */ #define DM_EVENT_READ 16 #define DM_EVENT_WRITE 17 #define DM_EVENT_TRUNCATE 18 #define DM_EVENT_DESTROY 20 Bill |
| Previous by Date: | Re: review: Simple patch to remove the dmapi support from xfsdump, Dean Roehrich |
|---|---|
| Next by Date: | Re: review: Simple patch to remove the dmapi support from xfsdump, Dean Roehrich |
| Previous by Thread: | Re: review: Simple patch to remove the dmapi support from xfsdump, Dean Roehrich |
| Next by Thread: | Re: review: Simple patch to remove the dmapi support from xfsdump, Dean Roehrich |
| Indexes: | [Date] [Thread] [Top] [All Lists] |