【问题标题】:Maximum file size supported by a file representation of a node?节点的文件表示支持的最大文件大小?
【发布时间】:2016-12-16 04:17:22
【问题描述】:

我觉得它是 63504 字节,因为文件大小是 (496/4)*512 + 16 字节。但我似乎无法以请求的格式得到它,这让我相信我试错了。

对于 pt b,我不知道如何处理它。任何帮助/提示将不胜感激

【问题讨论】:

  • 与您似乎相信的相反,StackOverflow 不是免费的编码服务(或考试回答服务)。您应该展示您的代码,以及相关的示例输入、预期输出、实际错误消息以及关于您卡在哪里的 cmets。请尽最大努力解决您的编程问题(使用编辑框左上角的 {} 工具来正确格式化代码/数据/输出/errMsgs),人们可能会提供帮助你。祝你好运。
  • 一般计算问题,与编程没有直接关系,在 Stack Overflow 上是题外话。也不欢迎考试题和“为我做这项工作”之类的问题。

标签: file unix operating-system filesystems inode


【解决方案1】:

第 [a] 部分

Starting with 

              Extent size 1 ==> File size will be 2^0 * 512 bytes 

              Extent size 2 ==>File size will be  2^1 * 512 bytes

              Extent size 3 ==>File size will be  2^2 * 512 bytes

              ......

              Extent size 12 ==>File size will be  2^11 * 512 bytes

              Extent size x ==>File size will be  2^(x-1) * 512 bytes

[b]部分

Considering 512 bytes as block size,

Number of disk accesses required for getting 1,00,000 byte will be,

100000/512  = 196

我希望它对你有意义....

【讨论】:

    猜你喜欢
    • 2019-04-14
    • 1970-01-01
    • 2013-08-07
    • 2014-03-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-05-26
    相关资源
    最近更新 更多