Pass the umount2() flags to every unbind() implementation. That is where the the decision to umount or not will be made.

This commit is contained in:
Gregory Nutt
2015-03-14 17:22:02 -06:00
parent f932b26db1
commit 8055ba4d03
10 changed files with 78 additions and 37 deletions
+3 -2
View File
@@ -1,7 +1,7 @@
/****************************************************************************
* fs/binfs/fs_binfs.c
*
* Copyright (C) 2011-2013 Gregory Nutt. All rights reserved.
* Copyright (C) 2011-2013, 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -370,7 +370,8 @@ static int binfs_bind(FAR struct inode *blkdriver, const void *data,
*
****************************************************************************/
static int binfs_unbind(void *handle, FAR struct inode **blkdriver)
static int binfs_unbind(FAR void *handle, FAR struct inode **blkdriver,
unsigned int flags)
{
fvdbg("Entry\n");
return OK;