Linux 下 FAT32文件系统上 文件名 大小写的问题
2012-12-27 16:02
417 查看
Linux下Mount函数的挂载:
shortname参数 决定了文件系统中是否 区分 英文大小写.
shortname={lower|win95|winnt|mixed}
Defines the behaviour for creation and display of filenames
which fit into 8.3 characters. If a long name for a file exists,
it will always be preferred display. There are four modes: :
lower Force the short name to lower case upon display; store a
long name when the short name is not all upper case. This
mode is the default.
win95 Force the short name to upper case upon display; store a
long name when the short name is not all upper case.
winnt Display the shortname as is; store a long name when the
short name is not all lower case or all upper case.
mixed Display the short name as is; store a long name when the
short name is not all upper case.
程序实现为:
1.不区分大小写:
if( mount(pTempDevName,pMyDisk[tTempEmptyOther].mountName,"vfat",0,"codepage=936,iocharset=utf8,shortname=lower") )
return;
2.区分大小写:
if( mount(pTempDevName,pMyDisk[tTempEmptyOther].mountName,"vfat",0,"codepage=936,iocharset=utf8,shortname=mixed") )
return;
shortname参数 决定了文件系统中是否 区分 英文大小写.
shortname={lower|win95|winnt|mixed}
Defines the behaviour for creation and display of filenames
which fit into 8.3 characters. If a long name for a file exists,
it will always be preferred display. There are four modes: :
lower Force the short name to lower case upon display; store a
long name when the short name is not all upper case. This
mode is the default.
win95 Force the short name to upper case upon display; store a
long name when the short name is not all upper case.
winnt Display the shortname as is; store a long name when the
short name is not all lower case or all upper case.
mixed Display the short name as is; store a long name when the
short name is not all upper case.
程序实现为:
1.不区分大小写:
if( mount(pTempDevName,pMyDisk[tTempEmptyOther].mountName,"vfat",0,"codepage=936,iocharset=utf8,shortname=lower") )
return;
2.区分大小写:
if( mount(pTempDevName,pMyDisk[tTempEmptyOther].mountName,"vfat",0,"codepage=936,iocharset=utf8,shortname=mixed") )
return;
相关文章推荐
- 解决linux下挂载windows的FAT32格式文件系统乱码问题
- 解决FAT32文件系统分区中文文件名在Linux下显示乱码
- 解决linux系统下分区文件占用总空间比实际分区总容量要小却提示磁盘空间已满的问题
- 当Linux系统出现重启网卡出现ifup和ifdown文件或目录不存在问题,Shutting down interface eth0: /etc/init.d/functions:line 517:
- Linux_UBOOT,LINUX内核编译,根文件系统的15个弱智问题
- linux和windows双系统互拷文件乱码问题
- Linux 文件系统问题汇总
- hi3531 SDK已编译文件系统制作jffs2文件系统镜像并解决问题 . 分类: arm-linux-Ubuntu HI3531 2014-06-18 08:45 951人阅读 评论(0) 收藏
- 解决无法挂载Linux文件系统的问题
- 关于UBOOT,LINUX内核编译,根文件系统的15个弱智问题(转)
- Linux系统里的MySQL大小写问题
- Linux下文件名、文件和mp3名字、pdf的乱码问题
- linux下将中文文件名文件cp到windows目录下后文件名乱码问题的解决
- Linux系统中 Sublime Text 中文 GBK 文件乱码问题
- windows系统正常但linux系统下找不到文件的问题
- 解决无法挂载Linux文件系统的问题
- Linux系统的文件句柄数量问题
- Linux_解决windows传送到linux下中文文件名及文件内容乱码问题
- Linux挂载文件系统时出现遇到问题wrong fs type
- Linux系统下Java应用程序打包成.jar文件遇到问题与解决问题