mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-14 17:13:50 +01:00
39 lines
736 B
C
39 lines
736 B
C
/*
|
|
* SPDX-FileCopyrightText: 2022 ML!PA Consulting GmbH
|
|
* SPDX-License-Identifier: LGPL-2.1-only
|
|
*/
|
|
|
|
/**
|
|
* @ingroup tests
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Test application for vfs_default
|
|
*
|
|
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
|
|
* @}
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "shell.h"
|
|
#include "vfs_default.h"
|
|
|
|
int main(void)
|
|
{
|
|
vfs_DIR mount = {0};
|
|
|
|
/* list mounted file systems */
|
|
puts("mount points:");
|
|
while (vfs_iterate_mount_dirs(&mount)) {
|
|
printf("\t%s\n", mount.mp->mount_point);
|
|
}
|
|
printf("\ndata dir: %s\n", VFS_DEFAULT_DATA);
|
|
|
|
/* start the shell */
|
|
char line_buf[SHELL_DEFAULT_BUFSIZE];
|
|
shell_run(NULL, line_buf, SHELL_DEFAULT_BUFSIZE);
|
|
|
|
return 0;
|
|
}
|