diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2015-07-09 18:58:17 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2015-07-09 18:58:17 +0900 |
commit | 12da8199a213549540925e70136d9fca9355e9bd (patch) | |
tree | ccc0740069e26a34b0764b9b2e4432d1ce1457f5 | |
parent | 39982620adfc069f948aa4f3b91f456f75d745c1 (diff) | |
download | deviced-12da8199a213549540925e70136d9fca9355e9bd.tar.gz deviced-12da8199a213549540925e70136d9fca9355e9bd.tar.bz2 deviced-12da8199a213549540925e70136d9fca9355e9bd.zip |
block: Change the unmount option when sdcard removed
When other processes still access a sdcard data during removed it,
deviced will send a sigterm and sigkill to the process
to unmount it successfully.
Change-Id: I858046019902e7ae7840868cf9c22c610a35f816
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
-rw-r--r-- | src/block/block.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/block/block.c b/src/block/block.c index 863c121e..ee0473b8 100644 --- a/src/block/block.c +++ b/src/block/block.c @@ -1081,7 +1081,7 @@ static int remove_block_device(struct udev_device *dev, const char *devnode) return -ENODEV; } - r = unmount_block_device(devnode, UNMOUNT_NORMAL); + r = unmount_block_device(devnode, UNMOUNT_FORCE); if (r < 0) _E("fail to unmount block device for %s", devnode); |