| To: | Ben Myers <bpm@xxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 8/14] xfsprogs: fix issues with e0607266f23 |
| From: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
| Date: | Thu, 08 Aug 2013 17:07:02 -0500 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20130808215330.GV3111@xxxxxxx> |
| References: | <1370564771-4929-1-git-send-email-david@xxxxxxxxxxxxx> <20130806214154.GM3111@xxxxxxx> <20130808210600.GN3111@xxxxxxx> <20130808215330.GV3111@xxxxxxx> |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 |
On 8/8/13 4:53 PM, Ben Myers wrote:
> A couple of issues found in review.
>
> Signed-off-by: Ben Myers <bpm@xxxxxxx>
>
> ---
> libxfs/xfs_alloc.c | 9 ++-------
> repair/dinode.c | 9 +++------
> 2 files changed, 5 insertions(+), 13 deletions(-)
...
> Index: b/repair/dinode.c
> ===================================================================
> --- a/repair/dinode.c 2013-08-06 14:43:09.910817602 -0500
> +++ b/repair/dinode.c 2013-08-06 14:44:49.660857353 -0500
> @@ -182,12 +182,9 @@ clear_dinode_core(struct xfs_mount *mp,
> platform_uuid_copy(&dinoc->di_uuid, &mp->m_sb.sb_uuid);
> }
>
> - for (i = 0; i < 16; i++) {
> - if (dinoc->di_pad[i] != 0) {
> - __dirty_no_modify_ret(dirty);
> - memset(dinoc->di_pad, 0, 16);
> - break;
> - }
> + if (dinoc->di_pad2 != 0) {
> + __dirty_no_modify_ret(dirty);
> + dinoc->di_pad2 = 0;
this probably needs to be fixed pronto, it's a memory corruptor right?
w/ a proper commit log,
Reviewed-by: Eric Sandeen <sandeen@xxxxxxxxxx>
Thanks,
-Eric
> }
>
> if (be64_to_cpu(dinoc->di_flags2) != 0) {
>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 5/14] xfsprogs: sync commit f5f3d9b016 completely, Eric Sandeen |
|---|---|
| Next by Date: | Re: [PATCH 8/14] xfsprogs: fix issues with e0607266f23, Eric Sandeen |
| Previous by Thread: | [PATCH 8/14] xfsprogs: fix issues with e0607266f23, Ben Myers |
| Next by Thread: | Re: [PATCH 8/14] xfsprogs: fix issues with e0607266f23, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |