From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 7 Nov 2014 16:28:35 +0100 Subject: [U-Boot] [PATCH v2] test: ums: Add sleep before unmount directory In-Reply-To: <1415365555-9790-1-git-send-email-l.majewski@samsung.com> References: <1415269420-6528-1-git-send-email-l.majewski@samsung.com> <1415365555-9790-1-git-send-email-l.majewski@samsung.com> Message-ID: <201411071628.35976.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Friday, November 07, 2014 at 02:05:55 PM, Lukasz Majewski wrote: > This change helps to run script on machines with quite long uptime. > Without this the following error emerges: > > File: ./dat_14M.img > umount: /mnt/tmp-ums-test: device is busy. > (In some cases useful info about processes that use > the device is found by lsof(8) or fuser(1)) > TX: md5sum:083d3d22b542d3ecba61b12d17e03f9f > mount: /dev/sdd6 already mounted or /mnt/tmp-ums-test busy > mount: according to mtab, /dev/sdd6 is already mounted on /mnt/tmp-ums-test > > Signed-off-by: Lukasz Majewski Why exactly does mount not block until it can unmount the device anyway ? Best regards, Marek Vasut