Hi, all,

I try to check the ext4 based i586 emuator image.
but, I found error 1(File system errors corrected) return when below script 
flow to check the ext4 filesystem.

--- check-script.sh begin 
-------------------------------------------------------------
#!/bin/bash
check_error()
{
        if [ "$1" -ne "0" ]; then
                echo "ERROR : $2 - exit code ($1) "
                exit $1
        fi
}
if [ -f platform.img ]; then
       /sbin/e2fsck -y -f -v platform.img
        check_error $? "Fail to e2fsck -f platform.img"
fi
--- check-script.sh end ------------------------------------------------

Even through, that error is not serious thing.
But, I need revised mic version to be compatible for ext4 without correctable 
image to get the confidence binary.
Please help to check this phenomenon.

※ in case of e2fsck ext3 image
--- command output begin 
-------------------------------------------------------------
$ sh check-image.sh
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

       16929 inodes used (30.23%, out of 56000)
        1308 non-contiguous files (7.7%)
          11 non-contiguous directories (0.1%)
             # of inodes with ind/dind/tind blocks: 1250/15/0
      199274 blocks used (100.00%, out of 199274)
           0 bad blocks
           1 large file

       11661 regular files
        3936 directories
          12 character device files
           0 block device files
           0 fifos
         995 links
        1311 symbolic links (1310 fast symbolic links)
           0 sockets
------------
       17915 files
--- command output end 
-------------------------------------------------------------

※ in case of e2fsck ext4 image (before corrected)
--- command output begin 
-------------------------------------------------------------
$ sh check-image.sh
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

       16927 inodes used (30.23%, out of 56000)
          60 non-contiguous files (0.4%)
          11 non-contiguous directories (0.1%)
             # of inodes with ind/dind/tind blocks: 0/0/0
             Extent depth histogram: 15571/24
      197961 blocks used (95.81%, out of 206627)
           0 bad blocks
           1 large file

       11661 regular files
        3934 directories
          12 character device files
           0 block device files
           0 fifos
         995 links
        1311 symbolic links (1310 fast symbolic links)
           0 sockets
------------
       17913 files
ERROR : Fail to e2fsck -f platform.img - exit code (1)
--- command output end 
-------------------------------------------------------------

※ in case of e2fsck ext4 image (after correct)
--- command output begin 
-------------------------------------------------------------
$ sh check-image.sh
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

       16927 inodes used (30.23%, out of 56000)
          60 non-contiguous files (0.4%)
          11 non-contiguous directories (0.1%)
             # of inodes with ind/dind/tind blocks: 0/0/0
             Extent depth histogram: 15571/24
      197961 blocks used (95.81%, out of 206627)
           0 bad blocks
           1 large file

       11661 regular files
        3934 directories
          12 character device files
           0 block device files
           0 fifos
         995 links
        1311 symbolic links (1310 fast symbolic links)
           0 sockets
------------
       17913 files
--- command output end 
-------------------------------------------------------------


Actually I doubt the current mic version cannot be supported ext4 fully because 
of following.
If you want to duplicate error then getting i586 snapshot image sample via your 
http://download.tizen.org/snapshots/tizen/common/latest/images/emulator32-wayland/common-emulator-wayland-mbr-i586/tizen-common_20150303.2_common-emulator-wayland-mbr-i586.tar.gz

※ in case of searching as ext4 of mic script stuff
--- command output begin 
-------------------------------------------------------------
/var/lib/python-support/python2.7/mic$ grep -R ext3 *
imager/loop.py:    is installed into an ext3 filesystem on a sparse file which 
can be
imager/loop.py:                                                       "ext3")
imager/loop.py:                    'fstype': part.fstype or 'ext3',
imager/loop.py:    #filesystem label. In the case of ext3 it's 16 characters, 
but in the case
imager/loop.py:        if val != "ext2" and val != "ext3":
imager/loop.py:    #Subclasses may change this if they wish to use something 
other ext3.
imager/loop.py:    #Note, only ext2 and ext3 are currently supported.
imager/loop.py:                 "fstype": self.__fstype or "ext3",
imager/loop.py:            if fstype in ("ext2", "ext3", "ext4"):
imager/loop.py:            if fstype in ("ext2", "ext3", "ext4"):
imager/livecd.py:        content += 'MODULES+="squashfs ext3 ext2 vfat msdos 
"\n'
imager/livecd.py:                shutil.move(self._image, self.__isodir + 
"/LiveOS/ext3fs.img")
imager/livecd.py:                                         "LiveOS", 
"ext3fs.img"))
imager/liveusb.py:                if fstype == "ext2" or fstype == "ext3":
imager/liveusb.py:                if fstype == "ext2" or fstype == "ext3":
imager/liveusb.py:            elif fstype == "ext2" or fstype == "ext3":
imager/liveusb.py:                            isodir + "/LiveOS/ext3fs.img")
imager/liveusb.py:                                         "LiveOS", 
"ext3fs.img"))
imager/raw.py:        mkinitrd += "MODULES+=\"ext3 ata_piix sd_mod libata 
scsi_mod\"\n"
imager/raw.py:        mkinitrd += "rootfs=\"ext3\"\n"
imager/raw.py:            partstr = "part / --size 1900 --ondisk sda 
--fstype=ext3"
utils/misc.py:    ext3fsimgptn = re.compile(r".*Linux.*ext3 filesystem data.*")
utils/misc.py:    elif ext3fsimgptn.match(output):
utils/misc.py:        return "ext3fsimg"
utils/partitionedfs.py:                # Type for ext2/ext3/ext4/btrfs
utils/partitionedfs.py:            elif p['fstype'] in ("ext2", "ext3", "ext4"):
--- command output end 
-------------------------------------------------------------

※ in case of searching as ext4 of mic script stuff
--- command output begin 
-------------------------------------------------------------
/var/lib/python-support/python2.7/mic$ grep -R ext4 *
imager/loop.py:            if fstype in ("ext2", "ext3", "ext4"):
imager/loop.py:            if fstype in ("ext2", "ext3", "ext4"):
imager/loop.py:            if item['fstype'] == "ext4":
utils/misc.py:    ext4fsimgptn = re.compile(r".*Linux.*ext4 filesystem data.*")
utils/misc.py:    elif ext4fsimgptn.match(output):
utils/misc.py:        return "ext4fsimg"
utils/partitionedfs.py:                # Type for ext2/ext3/ext4/btrfs
utils/partitionedfs.py:            elif p['fstype'] in ("ext2", "ext3", "ext4"):
--- command output end 
-------------------------------------------------------------

Thank you in advance and BR,
Ahn
_______________________________________________
General mailing list
[email protected]
https://lists.tizen.org/listinfo/general

Reply via email to