system hangs during unmounting

s_sitaraman_at_hotmail.com
Date: 10/24/05

  • Next message: s_sitaraman_at_hotmail.com: "Re: system hangs during unmounting"
    Date: 23 Oct 2005 16:24:34 -0700
    
    

    I am implementing a tool in the kernel which taps a block write to a
    specific mounted partition (say, /dev/hda6, the source disk) and makes
    a copy of this block of data to an unmounted disk (say, /dev/hdb1 or a
    DVD, the archive disk). To do this in kernel space, I open the archive
    disk as a raw device file, and invoke the function
    fdesc->f_op->write(...). In order to successfully write to the archive
    disk, I have to set the FS register to kernel space, and set the uid
    and gid to 0(root). After the write is done, I reset these values to
    what they were originally.

    Concurrently, when I try to unmount the source disk partition,
    /dev/hda6, the whole system hangs. The unmount is successful when the
    setting and resetting of the FS register, uid, and gid are not done.
    But in that case the disk write to the archive disk is not successful.

    Any help is appreciated!

    Thanks!


  • Next message: s_sitaraman_at_hotmail.com: "Re: system hangs during unmounting"

    Relevant Pages

    • Re: Software RAID-5 attempt to access beyond end of device...
      ... The reiserfs is on top of an lvm2 on top of a raid5 ... >information that has previously been stored on disk. ... Sep 7 20:32:04 cu kernel: Buffer I/O error on device dm-0, ... PCI: PCI BIOS revision 2.10 entry at 0xf1150, ...
      (Linux-Kernel)
    • Re: Spontaneous reboots
      ... yet I keep experiencing spontaneous reboots and crashes. ... > I have postfix handling mail and use cyrus-imap with virtual ... Page fault while in kernel mode ... > Disk errors: ...
      (freebsd-questions)
    • athlon-xp + fakeraid regression
      ... The build completes fine, the kernel boots fine, the machine will seem to be fine as long as it remains quiescent. ... At the beginning, just after hitting enter on the make command, one of the ad4 disk light goes on solid for several seconds. ... There is a well known thing where these cheap pata fakeraid cards will try to do ata133 if the drive says it can, when really, even if he drives are new ata133 drives and the cables are new and short and shielded, you still shouldn't try to do ata133 since the spec is too tight and you'll just get bit errors or other failures. ... The fix is use ata100 somehow, either by disabling dma entirely in loader.conf (since you have no more selective option there, and the raid card bios never has an option for controlling pio/dma mode like motherboard bios's have) and then use atacontrol in rc.early to set udma5, or by using disks that can only do ata100 and only advertise ata100 to the controller. ...
      (freebsd-current)
    • Re: F8 k3b problem or just random glitch?
      ... I must have been thinking of the last dvd I burnt. ... led went out the last time and a what do we do with this new disk requester had ... but to me a file manager is a 2 pane operation ala mc. ... All this BTW with kernel 2.6.26-rc6 doing the chores. ...
      (Fedora)
    • Re: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
      ... Sep 28 04:32:41 locker current size: 625140335 sectors ... Reboot and the disk was missing, ... I've changed hardware and kernel in a non controled manner, ... 32bit SMP kernel ...
      (Linux-Kernel)