今天在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 */