Changeset 85ff862 in mainline


Ignore:
Timestamp:
2011-09-18T21:22:03Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1d6866
Parents:
f456ab2
Message:

Currently MFS does not support minix filesystems where the size of a zone is not equal to the size
of a block.

Refuse to mount the filesystem if the "log2_zone_size" field of the superblock is not zero.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/mfs/mfs_ops.c

    rf456ab2 r85ff862  
    249249                                    MFS_MAX_NAME_LEN;
    250250        }
     251
     252        if (sbi->log2_zone_size != 0) {
     253                /* In MFS, file space is allocated per zones.
     254                 * Zones are a collection of consecutive blocks on disk.
     255                 *
     256                 * The current MFS implementation supports only filesystems
     257                 * where the size of a zone is equal to the
     258                 * size of a block.
     259                 */
     260                rc = ENOTSUP;
     261                goto out_error;
     262        }
     263
    251264        sbi->itable_off = 2 + sbi->ibmap_blocks + sbi->zbmap_blocks;
    252265
Note: See TracChangeset for help on using the changeset viewer.