Source-Changes archive

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

CVS commit: src/sys



Module Name:    src
Committed By:   tsutsui
Date:           Sun Dec 25 06:09:10 UTC 2011

Modified Files:
        src/sys/arch/ews4800mips/stand/boot: Makefile
        src/sys/arch/ews4800mips/stand/common: devopen.c diskutil.c
        src/sys/arch/i386/stand/boot: Makefile.boot boot2.c
        src/sys/arch/i386/stand/dosboot: Makefile main.c
        src/sys/arch/i386/stand/libsa: nfs.c
        src/sys/arch/landisk/stand/boot: Makefile.boot boot2.c
        src/sys/arch/x68k/stand/boot: Makefile boot.c
        src/sys/arch/x68k/stand/libsa: Makefile
        src/sys/arch/zaurus/stand/zboot: Makefile boot.c
        src/sys/lib/libsa: Makefile cd9660.c dosfs.c ext2fs.c ffsv1.c ffsv2.c
            lfsv1.c lfsv2.c nfs.c nullfs.c stand.h tftp.c ufs.c ufs.h ustarfs.c
Added Files:
        src/sys/lib/libsa: ls.c
Removed Files:
        src/sys/lib/libsa: ufs_ls.c

Log Message:
Apply the following patch submitted by Evgeniy Ivanov:
http://mail-index.NetBSD.org/tech-kern/2011/12/15/msg012226.html
http://mail-index.NetBSD.org/tech-kern/2011/12/17/msg012229.html

 - add 'ls' op to struct fs_ops to support ls command on each fs,
   enabled by -DLIBSA_ENABLE_LS_OP and SAMISCMAKEFLAGS+="SA_ENABLE_LS_OP=yes"
   in libsa
 - split sys/lib/libsa/ufs_ls.c into UFS specific part and MI part (ls.c)
   that opens the target fs and calls fs-depedent XXX_ls() functions
 - add a ls op for ext2fs
   (all other fs than ufs and ext2fs don't have actual ls ops yet)
 - replace existing MD ufs_ls() calls with this new MI ls()

The original patch was written for i386 and ext2fs.
zaurus zboot has been tested by nonaka@.
ews4800mips and x68k loaders have been tested by me (with several fixes).
landisk might be okay since it was almost copied from i386.

XXX1: "ls" op in fs_ops looks a bit inconsistent, but we will be able to
      replace it with real fs ops like readdir if it's really worth
XXX2: someone might have to check sys/arch/ia64/stand/efi/libefi/efifs_ls.c


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/ews4800mips/stand/boot/Makefile
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/ews4800mips/stand/common/devopen.c \
    src/sys/arch/ews4800mips/stand/common/diskutil.c
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/i386/stand/boot/Makefile.boot
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/i386/stand/boot/boot2.c
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/i386/stand/dosboot/Makefile
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/i386/stand/dosboot/main.c
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/i386/stand/libsa/nfs.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/landisk/stand/boot/Makefile.boot
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/landisk/stand/boot/boot2.c
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/x68k/stand/boot/Makefile
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/x68k/stand/boot/boot.c
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/x68k/stand/libsa/Makefile
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/zaurus/stand/zboot/Makefile
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/zaurus/stand/zboot/boot.c
cvs rdiff -u -r1.75 -r1.76 src/sys/lib/libsa/Makefile
cvs rdiff -u -r1.27 -r1.28 src/sys/lib/libsa/cd9660.c
cvs rdiff -u -r1.17 -r1.18 src/sys/lib/libsa/dosfs.c
cvs rdiff -u -r1.10 -r1.11 src/sys/lib/libsa/ext2fs.c \
    src/sys/lib/libsa/nullfs.c
cvs rdiff -u -r1.4 -r1.5 src/sys/lib/libsa/ffsv1.c src/sys/lib/libsa/ffsv2.c
cvs rdiff -u -r1.3 -r1.4 src/sys/lib/libsa/lfsv1.c src/sys/lib/libsa/lfsv2.c
cvs rdiff -u -r0 -r1.3 src/sys/lib/libsa/ls.c
cvs rdiff -u -r1.46 -r1.47 src/sys/lib/libsa/nfs.c
cvs rdiff -u -r1.73 -r1.74 src/sys/lib/libsa/stand.h
cvs rdiff -u -r1.33 -r1.34 src/sys/lib/libsa/tftp.c \
    src/sys/lib/libsa/ustarfs.c
cvs rdiff -u -r1.55 -r1.56 src/sys/lib/libsa/ufs.c
cvs rdiff -u -r1.9 -r1.10 src/sys/lib/libsa/ufs.h
cvs rdiff -u -r1.14 -r0 src/sys/lib/libsa/ufs_ls.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index