mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
42 lines
858 B
C
42 lines
858 B
C
/*
|
|
* Copyright (C) 2022 ML!PA Consulting GmbH
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
* directory for more details.
|
|
*/
|
|
|
|
/**
|
|
* @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;
|
|
}
|