xapi-project/sm — pull request #139 by vineetht (2014-05-27 10:05:19+00:00)
Title: CA-120469: Fail gracefully in case rmdir returns ENOTEMPTY

Parallel vm-suspend operations on vm that has got vdi's in the same SR
could result in reference files, ignoring rmdir error (ENOTEMPTY)
instead of lsdir looks a better option.

Signed-off-by: Vineeth Thampi Raveendran
Reviewed-by:Germano Percossi
Imported-by: Vineeth Thampi Raveendran

(cherry picked from commit bc1da0cf34b3213b455523109e402da106a9bc65)