From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 24 Nov 2001 15:27:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 24 Nov 2001 15:27:15 -0500 Received: from tomts20-srv.bellnexxia.net ([209.226.175.74]:49883 "EHLO tomts20-srv.bellnexxia.net") by vger.kernel.org with ESMTP id ; Sat, 24 Nov 2001 15:26:53 -0500 From: Dave Poirier Date: Sat, 24 Nov 2001 15:26:44 -0500 To: linux-kernel@vger.kernel.org Subject: bug report: loopback device Message-ID: <20011124152644.A1991@void-core.2y.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org [1.] Unmounting a loopback file system doesn't save the changes in the file [2.] I mount a file "ext2.flp" under /floppy as an ext2 file system, copy a file "u3core.bin" to /floppy. If I list /floppy, u3core.bin shows up. umount /floppy. ls /floppy, u3core.bin does not show up, as expected. mount ext2.flp under /floppy and list the files, u3core.bin isn't there. The file system was never saved back on disk at unmount. [3.] loopback, ext2, umount [4.] Linux version 2.4.15-greased-turkey (root@void-core) (gcc version 2.95.4 20011006 (Debian prerelease)) #3 Sat Nov 24 13:57:18 EST 2001 [5.] Not applicable [6.] #! /bin/sh dd if=/dev/zero of=ext2.flp bs=512 count=2880 mke2fs ext2.flp mount -o loop ext2.flp /floppy echo "hello!" > myfile.txt cp myfile.txt /floppy echo "Listing of mounted /floppy:" ls /floppy umount /floppy echo "Listing of unmounted /floppy:" ls /floppy mount -o loop ext2.flp /floppy echo "Listing of re-mounted /floppy:" ls /floppy umount /floppy [7.] [7.1.] Linux void-core 2.4.15-greased-turkey #3 Sat Nov 24 13:57:18 EST 2001 i686 unknown Gnu C 2.95.4 Gnu make 3.79.1 util-linux 2.11m mount 2.11m modutils 2.4.11 e2fsprogs 1.25 Linux C Library 2.2.4 Dynamic linker (ldd) 2.2.4 Procps 2.0.7 Net-tools 1.60 Console-tools 0.2.3 Sh-utils 2.0.11 Modules Loaded NVdriver [7.2.] processor : 0 vendor_id : AuthenticAMD cpu family : 6 model : 4 model name : AMD Athlon(tm) Processor stepping : 2 cpu MHz : 807.195 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow bogomips : 1608.90 [7.3.] NVdriver 717888 14 (autoclean) [7.4.] 0000-001f : dma1 0020-003f : pic1 0040-005f : timer 0060-006f : keyboard 0080-008f : dma page reg 00a0-00bf : pic2 00c0-00df : dma2 00f0-00ff : fpu 0170-0177 : ide1 01f0-01f7 : ide0 02f8-02ff : serial(set) 0376-0376 : ide1 03c0-03df : vga+ 03f6-03f6 : ide0 03f8-03ff : serial(set) 0cf8-0cff : PCI conf1 9400-947f : 3Com Corporation 3c900B-TPO [Etherlink XL TPO] 9400-947f : 00:0d.0 9800-98ff : VIA Technologies, Inc. Ethernet Controller 9800-98ff : via-rhine a000-a007 : Creative Labs SB Live! a400-a41f : Creative Labs SB Live! EMU10k1 a400-a41f : EMU10K1 d000-d01f : VIA Technologies, Inc. UHCI USB (#2) d000-d01f : usb-uhci d400-d41f : VIA Technologies, Inc. UHCI USB d400-d41f : usb-uhci d800-d80f : VIA Technologies, Inc. Bus Master IDE d800-d807 : ide0 d808-d80f : ide1 e400-e4ff : VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] e800-e80f : VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] 00000000-0009fbff : System RAM 0009fc00-0009ffff : reserved 000a0000-000bffff : Video RAM area 000c0000-000c7fff : Video ROM 000f0000-000fffff : System ROM 00100000-17febfff : System RAM 00100000-002532c5 : Kernel code 002532c6-002baff7 : Kernel data 17fec000-17feefff : ACPI Tables 17fef000-17ffefff : reserved 17fff000-17ffffff : ACPI Non-volatile Storage d5000000-d500007f : 3Com Corporation 3c900B-TPO [Etherlink XL TPO] d5800000-d58000ff : VIA Technologies, Inc. Ethernet Controller d5800000-d58000ff : via-rhine d6000000-d7dfffff : PCI Bus #01 d6000000-d6ffffff : nVidia Corporation GeForce 256 DDR d7f00000-e3ffffff : PCI Bus #01 d8000000-dfffffff : nVidia Corporation GeForce 256 DDR e4000000-e7ffffff : VIA Technologies, Inc. VT8363/8365 [KT133/KM133] ffff0000-ffffffff : reserved [7.5.] 00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 02) Subsystem: Asustek Computer, Inc.: Unknown device 8033 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- Capabilities: [c0] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP] (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- Reset- FastB2B- Capabilities: [80] Power Management version 2 Flags: PMEClk- DSI+ D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00:04.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 22) Subsystem: Asustek Computer, Inc.: Unknown device 8033 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- [disabled] [size=64K] Capabilities: [40] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00:0d.0 Ethernet controller: 3Com Corporation 3c900B-TPO [Etherlink XL TPO] (rev 04) Subsystem: 3Com Corporation 3C900B-TPO Etherlink XL TPO 10Mb Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- [disabled] [size=128K] Capabilities: [dc] Power Management version 1 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 01:00.0 VGA compatible controller: nVidia Corporation GeForce 256 DDR (rev 10) (prog-if 00 [VGA]) Subsystem: Asustek Computer, Inc. AGP-V6800 DDR SGRAM Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- [7.6.] Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: PLEXTOR Model: CD-R PX-W8432T Rev: 1.05 Type: CD-ROM ANSI SCSI revision: 02 [7.7.] None [X.] Output of the provided script: ext2.flp is not a block special device. Proceed anyway? (y,n) y Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 184 inodes, 1440 blocks 72 blocks (5.00%) reserved for the super user First data block=1 1 block group 8192 blocks per group, 8192 fragments per group 184 inodes per group Writing inode tables: 0/1 done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 29 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. Listing of mounted /floppy: lost+found myfile.txt Listing of unmounted /floppy: Listing of re-mounted /floppy: lost+found