2013-2014华南理工大学操作系统课程设计(完整源代码和详细文档)

上传者: qhrqhrqhr | 上传时间: 2019-12-21 20:28:55 | 文件大小: 1.27MB | 文件类型: zip
Requirements 1. Simulate a Unix file system on your Windows Platform 2. Understand the file system on Unix system, and the usage of i-nodes 3. Implement the function of sub-directory 4. The task needs to be completed using C++ or C 5. Tasks/Functionalities The following functions are required in your file system: 1. Allocate 16MB space in memory as the storage for your file system. The space is divided as blocks with block size 1KB Assume block address length is 32-bit; Design the information contained in i-node The i-node should support up to 10 direct block addresses The i-node should support at least one indirect block address 2. The fist block is used for storing the i-node for the root directory(/). While your program is lunched, two directories (/dir1 and / dir1/dir2) should be created, and also two files need to be written as /dir1/file1 and /dir1/dir2/file2 (5 marks) 3. File 1 and 2 contain the message of “This is file 1.” and “This is file2”. 4. Following commands should be supported in your system: a) Create a file:createFile fileName fileSize (10 marks) i.e.:createFile /dir1/myFile 1024 (in bytes) if fileSiz > max file size, print out an error message. The file content is filled up with filename + repeated digits from 0 - 9 i.e.: “myFile012345678901234567890123….” b) Delete a file:deleteFile filename (10 marks) i.e.:deleteFile /dir1/myFile c) Create a directory:createDir (5 marks) i.e.:createDir /dir1/sub1 d) Delete a directory:deleteDir (5 marks) i.e.: deleteDir /dir1/sub1 (The current working directory is not allowed to be deleted) e) Change current working direcotry:changeDir (5 marks) i.e.: changeDir /dir2 f) List all the files and sub-directories under current working directory:dir (5 marks) You also need to list at least two file attributes. (i.e. file size, time created, etc.) g) Copy a file : cp (5 marks) i.e.: file1 file2 h) Display the usage of storage space:sum (10 marks) Display the usage of the 16MB

文件下载

资源详情

[{"title":"( 3 个子文件 1.27MB ) 2013-2014华南理工大学操作系统课程设计(完整源代码和详细文档)","children":[{"title":"readme.doc <span style='color:#111;'> 434.48KB </span>","children":null,"spread":false},{"title":"操作系统课设报告.pdf <span style='color:#111;'> 1.26MB </span>","children":null,"spread":false},{"title":"file_system.cpp <span style='color:#111;'> 28.67KB </span>","children":null,"spread":false}],"spread":true}]

评论信息

  • 真的137 :
    好吧
    2019-02-07
  • zjrzjrc :
    功能很全面很强大,基本符合文件系统操作要求,很不错的资源!
    2015-05-13
  • l996243623 :
    英文的,不想看
    2015-04-14
  • lusl123 :
    还行吧,还算满意
    2014-06-12
  • uc6814580 :
    代码和文档都有,功能也比较全
    2014-02-24

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明