bug-cpio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-cpio] Linux device number bug report(cpio)


From: Wang Chen
Subject: [Bug-cpio] Linux device number bug report(cpio)
Date: Mon, 12 Jan 2004 19:43:11 +0800

 
Hello,

I have some questions about device
number
extension.

In Linux kernel 2.6, device number will be extended from 16-bit to 32-bit. All utilities and libraries should make corresponding extension for this new feature in kernel 2.6.

I find that “cpio-2.5-6” uses structure dev_t and operates the device number
as 16-bit.

In file copyout.c: 118

     sprintf (ascii_header,
        "%06ho%06lo%06lo%06lo%06lo%06lo%06lo%06lo%011lo%06lo%011lo",
        file_hdr->c_magic & 0xFFFF, (long) dev & 0xFFFF,
        file_hdr->c_ino & 0xFFFF, file_hdr->c_mode & 0xFFFF,
        file_hdr->c_uid & 0xFFFF, file_hdr->c_gid & 0xFFFF,
        file_hdr->c_nlink & 0xFFFF, (long) rdev & 0xFFFF,
        file_hdr->c_mtime, file_hdr->c_namesize & 0xFFFF,
        file_hdr->c_filesize);

The device number dev and rdev should be 32-bit. But this operation only prints their lower 16-bit and it seems not to correspond to device number extension.


Since I didn’t find any information about this aspect in homepage of this package, I wonder whether the latest version has completed the device number extension? If not, will it be completed in the future? And when?

Looking forward to answering.

--------------------------------------------------
Wang Chen
Dept. of Technology and Development
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
No. 16-5, Guanzhou Rd., Nanjing, P.R.China
PHONE  : +86+25-86630523-636
FUJITSU INTERNAL: 79955-636
FAX  : +86+25-83317685
Mail  : address@hidden
--------------------------------------------------


reply via email to

[Prev in Thread] Current Thread [Next in Thread]