fs/ioctl: add BLKSSZGET cmd to get block sector size

refer to:
https://sites.uclouvain.be/SystInfo/usr/include/sys/mount.h.html

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong
2022-07-22 09:07:57 +03:00
committed by Petro Karashchenko
parent b385c48a30
commit 978530f5f6
3 changed files with 23 additions and 0 deletions
+3
View File
@@ -26,11 +26,14 @@
****************************************************************************/
#include <nuttx/compiler.h>
#include <nuttx/fs/ioctl.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#define BLKSSZGET BIOC_BLKSSZGET
/* Mount flags */
#define MS_RDONLY 1 /* Mount file system read-only */