lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140911190349.GP10351@birch.djwong.org>
Date:	Thu, 11 Sep 2014 12:03:49 -0700
From:	"Darrick J. Wong" <darrick.wong@...cle.com>
To:	"Theodore Ts'o" <tytso@....edu>
Cc:	linux-ext4@...r.kernel.org
Subject: Re: [PATCH 10/25] debugfs: create journal handling routines

On Thu, Sep 11, 2014 at 02:53:43PM -0400, Theodore Ts'o wrote:
> On Mon, Sep 08, 2014 at 04:12:42PM -0700, Darrick J. Wong wrote:
> > +recovery.o: $(srcdir)/../e2fsck/recovery.c
> > +	cp $(srcdir)/../e2fsck/recovery.c $(srcdir)/recovery.c
> > +	$(E) "	CC $@"
> > +	$(Q) $(CC) -c $(ALL_CFLAGS) -I$(srcdir) \
> > +		 $(srcdir)/recovery.c -DDEBUGFS -o $@
> > +
> > +revoke.o: $(srcdir)/../e2fsck/revoke.c
> > +	cp $(srcdir)/../e2fsck/revoke.c $(srcdir)/revoke.c
> > +	$(E) "	CC $@"
> > +	$(Q) $(CC) -c $(ALL_CFLAGS) -I$(srcdir) \
> > +		 $(srcdir)/revoke.c -DDEBUGFS -o $@
> > +
> 
> Please don't copy the .c files around.  That just invites confusion
> because git will show that there are new files, debugfs/recovery.c and
> debugfs/revoke.c, and some future unwary developer might try to edit
> recovery.c and revoke.c in the debugfs directory.
> 
> Much better to do it this way:
> 
> recovery.o: $(srcdir)/../e2fsck/recovery.c
> 	$(E) "	CC $@"
> 	$(Q) $(CC) -c $(ALL_CFLAGS) -I$(srcdir) \
> 		 $(srcdir)/../e2fsck/recovery.c -DDEBUGFS -o $@
> 
> revoke.o: $(srcdir)/../e2fsck/revoke.c
> 	$(E) "	CC $@"
> 	$(Q) $(CC) -c $(ALL_CFLAGS) -I$(srcdir) \
> 		 $(srcdir)/../e2fsck/revoke.c -DDEBUGFS -o $@
> 
> I'll fix this up when I apply this patch.

Will that pick up debugfs/jfs_user.h, though?  I originally tried it this way
but gcc seemed to want to pull in the jfs_user.h from e2fsck/.

--D

> 
> Cheers,
> 
> 						- Ted
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ