All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
To: Richard Weinberger <richard@nod.at>,
	<linux-mtd@lists.infradead.org>, <computersforpeace@gmail.com>,
	<dedekind1@gmail.com>
Subject: Re: [RFC PATCH RESEND] mtd-utils: Restructure the mtd-utils source.
Date: Tue, 30 Jun 2015 15:27:55 +0800	[thread overview]
Message-ID: <559244FB.8080507@cn.fujitsu.com> (raw)
In-Reply-To: <559242F7.1020701@nod.at>

On 06/30/2015 03:19 PM, Richard Weinberger wrote:
> Am 30.06.2015 um 08:50 schrieb Dongsheng Yang:
>> * There is no code modification in this commit, only moving
>> * the files to proper place.
>>
>> The user tools looks a little messy as we place almost
>> the all tools in the root directory of mtd-utils. To make
>> it more clear, I propose to introduce the following structure
>> for our source code.
>>
>> mtd-utils/
>> 	|-- lib
>> 	|-- include
>> 	|-- misc-utils
>> 	|-- flash-utils
>> 	|-- jffsX-utils
>> 	|-- nand-utils
>> 	|-- nor-utils
>> 	|-- ubi-utils
>> 	|-- ubifs-utils
>> 	`-- tests
>>
>> Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
>
> Hmm, while I agree with you that the current directory structure is not perfect
> I'm not sure if it is worth the hassle. Because your patch hurts git blame.

Good point. But seems the git currently is smart enough to show the
right history in blame after a rename commit.

  # git blame misc-utils/mtd_debug.c|tail
f3f3a208 mtd_debug.c (Richard Genoud   2012-09-12 16:38:34 +0200 
388) 			err = erase_flash(fd, strtoul(argv[3], NULL, 0), 
strtoul(argv[4], NULL, 0));
37f40f55 mtd_debug.c (Josh Boyer       2006-10-09 20:49:57 -0500 
389) 			break;
37f40f55 mtd_debug.c (Josh Boyer       2006-10-09 20:49:57 -0500 390) 	}
37f40f55 mtd_debug.c (Josh Boyer       2006-10-09 20:49:57 -0500 391)
37f40f55 mtd_debug.c (Josh Boyer       2006-10-09 20:49:57 -0500 392) 
/* close device */
307ac3d6 mtd_debug.c (Brian Norris     2011-08-19 10:07:47 -0700 393) 
if (close(fd) < 0)
307ac3d6 mtd_debug.c (Brian Norris     2011-08-19 10:07:47 -0700 394) 	 
errmsg_die("close()");
37f40f55 mtd_debug.c (Josh Boyer       2006-10-09 20:49:57 -0500 395)
307ac3d6 mtd_debug.c (Brian Norris     2011-08-19 10:07:47 -0700 396) 
return err;
^72212c1 mtd_debug.c (David Woodhouse  2006-04-11 19:09:16 -0400 397) }

>
> Thanks,
> //richard
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>

  reply	other threads:[~2015-06-30  7:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-30  6:50 [RFC PATCH RESEND] mtd-utils: Restructure the mtd-utils source Dongsheng Yang
2015-06-30  7:19 ` Richard Weinberger
2015-06-30  7:27   ` Dongsheng Yang [this message]
2015-06-30  7:38     ` Richard Weinberger
2015-06-30  7:41       ` Dongsheng Yang
2015-06-30  9:29         ` Richard Weinberger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=559244FB.8080507@cn.fujitsu.com \
    --to=yangds.fnst@cn.fujitsu.com \
    --cc=computersforpeace@gmail.com \
    --cc=dedekind1@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=richard@nod.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.