* @brief Check if a mount point is mounted * * This function checks if the given mount point is mounted. It returns 0 if the mount point is mounted, * and -1 otherwise. * * @param[in] mnt The mount point to check * * @return int 0 if mounted, -1 otherwise */
| 513 | * @return int 0 if mounted, -1 otherwise |
| 514 | */ |
| 515 | int dfs_is_mounted(struct dfs_mnt *mnt) |
| 516 | { |
| 517 | int ret = 0; |
| 518 | |
| 519 | if (mnt && !(mnt->flags & MNT_IS_MOUNTED)) |
| 520 | { |
| 521 | ret = -1; |
| 522 | } |
| 523 | |
| 524 | return ret; |
| 525 | } |
| 526 | |
| 527 | /** |
| 528 | * @brief Create a filesystem on the specified device |
no outgoing calls
no test coverage detected