------------------------------------------------------------------------------ T H E /proc F I L E S Y S T E M ------------------------------------------------------------------------------ /proc/sys Terrehon Bowden October 7 1999 Bodo Bauer 2.4.x update Jorge Nerin November 14 2000 ---------------------------------------------...
by Aquester - Linux文档专区 - 2008-04-22 11:18:32 阅读(1291) 回复(0)
今天到客户这里,客户因台风放假,我也乐得清闲,休息 同事打电话说他那边linux挂不上2t空间,我想这个简单,发个该gpt的给他,结果人家说是mkfs没问题,就是mount的时候提示类型错误,我晕。as4 u2 嘎烂的.. 看来只有未来的ext4 或者xfs等文件系统了,换。as4 默认内核不支持. 下个内核linux-2.6.22.6.tar.bz2,在自己虚拟机上解开,第一次竟然在编译了将近2小时后突然崩溃.我也崩溃了。再来 make menuconfig加上...
try opening the file with O_DIRECT in the flags. O_DIRECT allows reads and writes to avoid the linux fs cache 举例; #include #include #include #include #include unsigned long long get_sys_time(); int main(int argc,char*argv[]) { int i; int nRet=0; if(argc!=3) { printf("Usage:pro file size "); return 0; } unsigned long lon...
/******************************************** *Created By: Prometheus *Date : 2009-5-24 ********************************************/ /* * linux/fs/exec.c * * Copyright (C) 1991, 1992 Linus Torvalds */ /* * #!-checking implemented by tytso. */ /* * Demand-loading implemented 01.12.91 - no need to read anything but * the header into memory. The inode of the executable is pu...
/* * This file contains the procedures for the handling of select * * Created for linux based loosely upon Mathius Lattner's minix * patches by Peter MacDonald. Heavily edited by Linus. */ #include #include #include #include #include #include #include #include #include #include #include //向上圆整 #define ROUND_UP(x,y) (((x)+(y)-1)/(y)) /* * Ok, Peter made a complicated, but strai...
/******************************************** *Created By: Prometheus *Date : 2009-5-20 ********************************************/ /* * linux/fs/pipe.c * * Copyright (C) 1991, 1992 Linus Torvalds */ #include #include #include #include #include #include #include /* We don't use the head/tail construction any more. Now we use the start/len*/ /* contruction providing ...
/******************************************** *Created By : Prometheus *Date : 2009-5-19 ********************************************/ /* * linux/fs/fifo.c * * written by Paul H. Hargrove */ #include #include #include #include //命名管道的打开 // The FIFO must be opened on both ends (reading and writing) before data can be passed. Normally, // opening the FIFO blocks u...
/******************************************** *Created By: Prometheus *Date : 2009-5-19 ********************************************/ /* * linux/fs/locks.c * * Provide support for fcntl()'s F_GETLK, F_SETLK, and F_SETLKW calls. * Doug Evans, 92Aug07, dje@sspiff.uucp. * * FIXME: two things aren't handled yet: * - deadlock detection/avoidance (of dubious merit, but si...
/******************************************** *Created By: Prometheus *Date : 2009-5-19 ********************************************/ #include #include #include #include #include #include static void cp_old_stat(struct inode * inode, struct old_stat * statbuf) { struct old_stat tmp; printk("Vfs: Warning: %s using old stat() call. Recompile your binary.\n", ...
/******************************************** *Created By: Prometheus *Date : 2009-5-19 ********************************************/ /* * linux/fs/open.c * * Copyright (C) 1991, 1992 Linus Torvalds */ #include #include #include #include #include #include #include #include #include #include #include #include #include extern void fcntl_remove_locks(struct task...