知識社群登入
位置: 艾鍗學院 Blog > 專業論壇 > 討論
genext2f 執行發生錯誤? why?
1樓
請問這個是什麼狀況? 怎麼解決
 
..buildroot/tar/buildroot/build_i386/genext2fs-1.3/genext2fs: ignoring entry linc-d74-0-743cafba43c6
..buildroot/tar/buildroot/build_i386/genext2fs-1.3/genext2fs: ignoring entry linc-d4b-0-3323d793a5ddb
..buildroot/tar/buildroot/build_i386/genext2fs-1.3/genext2fs: ignoring entry linc-d79-0-63d410bbc907
..buildroot/tar/buildroot/build_i386/genext2fs-1.3/genext2fs: ignoring entry linc-d7b-0-780ed4b9d07d4
..buildroot/tar/buildroot/build_i386/genext2fs-1.3/genext2fs: ignoring entry linc-d9b-0-5fd4c7d62c0d4
..buildroot/tar/buildroot/build_i386/genext2fs-1.3/genext2fs: ignoring entry linc-da1-0-6e2655e74f98b
..buildroot/tar/buildroot/build_i386/genext2fs-1.3/genext2fs: ignoring entry linc-da3-0-6e2655e754d0f
..buildroot/tar/buildroot/build_i386/genext2fs-1.3/genext2fs: ignoring entry linc-da7-0-6e2655e7631cc
..buildroot/tar/buildroot/build_i386/genext2fs-1.3/genext2fs: ignoring entry linc-dad-0-6e2655e797df8
..buildroot/tar/buildroot/build_i386/genext2fs-1.3/genext2fs: ignoring entry linc-db0-0-6e2655e7d62cc
..buildroot/tar/buildroot/build_i386/genext2fs-1.3/genext2fs: ignoring entry linc-db2-0-6e2655e6f06
..buildroot/tar/buildroot/build_i386/genext2fs-1.3/genext2fs: ignoring entry linc-db4-0-4d86647e9c369
..buildroot/tar/buildroot/build_i386/genext2fs-1.3/genext2fs: ignoring entry linc-1135-0-3acbbec2ae804
..buildroot/tar/buildroot/build_i386/genext2fs-1.3/genext2fs: ignoring entry linc-3b54-0-1db0f6dd527dd
..buildroot/tar/buildroot/build_i386/genext2fs-1.3/genext2fs: ignoring entry linc-3d7d-0-3188b0ef4d3f6
..buildroot/tar/buildroot/build_i386/genext2fs-1.3/genext2fs: ignoring entry mapping-root
2樓
 
 你的root fs目錄裡面,存在一些檔案類型.使genext2fs無法識別,
 所以忽略該檔案...
 
     switch(st.st_mode & S_IFMT)
                        {
                                case S_IFCHR:
                                        mknod_fs(fs, this_nod, name, mode|FM_IFCHR, uid, gid, st.st_rdev >> 8, st.st_rdev & 0xff, ctime, mtime);
                                        break;
                                case S_IFBLK:
                                        mknod_fs(fs, this_nod, name, mode|FM_IFBLK, uid, gid, st.st_rdev >> 8, st.st_rdev & 0xff, ctime, mtime);
                                        break;
                                case S_IFIFO:
                                        mknod_fs(fs, this_nod, name, mode|FM_IFIFO, uid, gid, 0, 0, ctime, mtime);
                                        break;
                                case S_IFLNK:
                                        b = xreadlink(dent->d_name);
                                        mklink_fs(fs, this_nod, name, st.st_size, b, uid, gid, ctime, mtime);
                                        free(b);
                                        break;
                                case S_IFREG:
                                        fh = xfopen(dent->d_name, "r");
                                        mkfile_fs(fs, this_nod, name, mode, st.st_size, fh, uid, gid, ctime, mtime);
                                        fclose(fh);
                                        break;
                                case S_IFDIR:
                                        nod = mkdir_fs(fs, this_nod, name, mode, uid, gid, ctime, mtime);
                                        if(chdir(dent->d_name) < 0)
                                                perror_msg_and_die(name);
                                        add2fs_from_dir(fs, nod, squash_uids, squash_perms, stats);
                                        chdir("..");
                                        break;
                                default:
                                        error_msg("ignoring entry %s", name);