X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=include%2Ffs.h;h=2f2aca8378be15a92b8082e0872a9b3a3829a4f9;hb=ab8243e43145598a55182c3f8ba0784f70526358;hp=ffb6ce7ada64f0498b46eac89d6a335bea83c488;hpb=878cd63e02f63f245182a101807186b44e20f116;p=people%2Fms%2Fu-boot.git diff --git a/include/fs.h b/include/fs.h index ffb6ce7ada..2f2aca8378 100644 --- a/include/fs.h +++ b/include/fs.h @@ -1,17 +1,7 @@ /* * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. * - * This program is free software; you can redistribute it and/or modify it - * under the terms and conditions of the GNU General Public License, - * version 2, as published by the Free Software Foundation. - * - * This program is distributed in the hope it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: GPL-2.0 */ #ifndef _FS_H #define _FS_H @@ -22,6 +12,7 @@ #define FS_TYPE_FAT 1 #define FS_TYPE_EXT 2 #define FS_TYPE_SANDBOX 3 +#define FS_TYPE_UBIFS 4 /* * Tell the fs layer which block device an partition to use for future @@ -109,4 +100,10 @@ int do_save(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], int do_fs_uuid(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], int fstype); +/* + * Determine the type of the specified filesystem and print it. Optionally it is + * possible to store the type directly in env. + */ +int do_fs_type(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); + #endif /* _FS_H */