700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > linux 格式化u盘失败怎么办 mkfs.ext2 mkfs.vfat 格式化u盘时失败

linux 格式化u盘失败怎么办 mkfs.ext2 mkfs.vfat 格式化u盘时失败

时间:2019-01-11 05:50:39

相关推荐

linux 格式化u盘失败怎么办 mkfs.ext2 mkfs.vfat 格式化u盘时失败

今天在linux格式化时碰到个问题:

mkfs.vfat: lseek: Value too large for defined data type

传说中的解决如下:

I solved my problem for lseek() call.

The followings is a patch.

>> linux kernel.

--- a/arch/openrisc/include/asm/unistd.h

+++ b/arch/openrisc/include/asm/unistd.h

@@ -35,4 +35,9 @@

#define __NR_or1k_atomic __NR_arch_specific_syscall

__SYSCALL(__NR_or1k_atomic, sys_or1k_atomic)

+#define __NR__llseek (__NR_arch_specific_syscall+1)

+__SYSCALL(__NR__llseek, sys_llseek)

+

+

+

#endif /* __ASM_OPENRISC_UNISTD_H */

--- a/include/asm-generic/unistd.h

+++ b/include/asm-generic/unistd.h

@@ -198,8 +198,7 @@ __SC_COMP(__NR_getdents64, sys_getdents64, compat_sys_getdents64)

/* fs/read_write.c */

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。