Whamcloud - gitweb
LU-8681 osd: ingore ENODATA during unlink agent parent 30/23030/2
authorNiu Yawei <yawei.niu@intel.com>
Sun, 9 Oct 2016 15:00:42 +0000 (11:00 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 20 Oct 2016 10:40:25 +0000 (10:40 +0000)
commitc74fd3b0fb5edc7af092e37d9cc453f5edaace85
treea12976919aab9a7d6eed9371af8d0b092414c13c
parent0229ead6fab53ce0c5207647ab042e82c619cebc
LU-8681 osd: ingore ENODATA during unlink agent parent

If the directory is created before 2.0, there are no LMA
for the directory, then osd_delete_from_remote_parent()
will return ENODATA. So we should ignore ENODATA in this
case otherwise it will cause unlink fails.

Lustre-commit: 860283cb433dff4246a5c255ed89325323ee8e7c
Lustre-change: http://review.whamcloud.com/16760

Signed-off-by: Wang Di <di.wang@intel.com>
Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Intel-bug-id: LDEV-64
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Change-Id: I728c081f324253080c5d2cb740b3a11b26f9d570
Reviewed-on: http://review.whamcloud.com/23030
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
lustre/osd-ldiskfs/osd_compat.c
lustre/osd-ldiskfs/osd_handler.c