[Bug 883748] Re: Suspend/resume corrupts external data storage devices

2013-08-18 Thread Christopher M. Penalver
** Tags added: bios-outdated-2.30 needs-suspend-logs regression-
potential

** Summary changed:

- Suspend/resume corrupts external data storage devices
+ [reiserfs] Suspend/resume corrupts external data storage devices

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883748

Title:
  [reiserfs] Suspend/resume corrupts external data storage devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/883748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 883748] Re: Suspend/resume corrupts external data storage devices

2013-03-11 Thread Nathan Korth
This is still a problem; I've been having issues using an SD card with a
netbook that has very little internal memory. After resume, the mount is
still there but it doesn't work. In fact, one time it seems to have
caused a kernel panic:

Mar  9 22:16:09 nkorth-mini kernel: [12594.477903] EXT4-fs (mmcblk0p1): mount 
failed
Mar  9 22:16:09 nkorth-mini kernel: [12594.484058] BUG: unable to handle kernel 
NULL pointer dereference at 0054
Mar  9 22:16:09 nkorth-mini kernel: [12594.484328] IP: [c1148663] 
mount_fs+0x43/0x180
Mar  9 22:16:09 nkorth-mini kernel: [12594.484504] *pdpt = 152bf001 
*pde =  
Mar  9 22:16:09 nkorth-mini kernel: [12594.484709] Oops:  [#1] SMP

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883748

Title:
  Suspend/resume corrupts external data storage devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/883748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 883748] Re: Suspend/resume corrupts external data storage devices

2013-03-11 Thread Steve
I don't understand why distributions think it is okay to keep removable
devices mounted across suspend. This is just asking for data corruption.
I've written some sleep scripts that prevent suspend of unmount could not
be done but these are fairly hacked up...
On Mar 11, 2013 6:45 AM, Nathan Korth computernut...@gmail.com wrote:

 This is still a problem; I've been having issues using an SD card with a
 netbook that has very little internal memory. After resume, the mount is
 still there but it doesn't work. In fact, one time it seems to have
 caused a kernel panic:

 Mar  9 22:16:09 nkorth-mini kernel: [12594.477903] EXT4-fs (mmcblk0p1):
 mount failed
 Mar  9 22:16:09 nkorth-mini kernel: [12594.484058] BUG: unable to handle
 kernel NULL pointer dereference at 0054
 Mar  9 22:16:09 nkorth-mini kernel: [12594.484328] IP: [c1148663]
 mount_fs+0x43/0x180
 Mar  9 22:16:09 nkorth-mini kernel: [12594.484504] *pdpt =
 152bf001 *pde = 
 Mar  9 22:16:09 nkorth-mini kernel: [12594.484709] Oops:  [#1] SMP

 --
 You received this bug notification because you are subscribed to the bug
 report.
 https://bugs.launchpad.net/bugs/883748

 Title:
   Suspend/resume corrupts external data storage devices

 Status in “linux” package in Ubuntu:
   Confirmed

 Bug description:
   Ubuntu will permit suspend/resume (have not tried hibernate) without
   attempting to unmount any external USB storage devices, even though
   processes may still have open files on these devices. After the system
   is resumed, the USB storage devices may not be present, due to not
   having been re-enumerated yet. This can and DOES result in data
   corruption on the filesystem on the external device, as evidenced by
   errors in dmesg and having to do journal replays. I am not sure that
   the dmesg here will have the whole story (due to dmesg -c having been
   run as part of another bug report) but the parts that may not be there
   basically boil down to reiserfs being very unhappy that the block
   device was yanked out from under it.

   As a policy decision, it is WRONG to allow suspend to take place
   unless externally-attached USB block devices are still mounted. The
   system needs to attempt to unmount everything in /media prior to
   suspending, and needs to FAIL TO SUSPEND (throwing an error) if all
   devices cannot be unmounted due to some of the mount points being in
   use.

   ProblemType: Bug
   DistroRelease: Ubuntu 11.10
   Package: linux-image-3.0.0-12-generic 3.0.0-12.20
   ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
   Uname: Linux 3.0.0-12-generic x86_64
   NonfreeKernelModules: nvidia
   AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
   ApportVersion: 1.23-0ubuntu3
   Architecture: amd64
   ArecordDevices:
 List of CAPTURE Hardware Devices 
card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
   AudioDevicesInUse:
USERPID ACCESS COMMAND
/dev/snd/controlC0:  steve 24738 F pulseaudio
   CRDA: Error: [Errno 2] No such file or directory
   Card0.Amixer.info:
Card hw:0 'Intel'/'HDA Intel at 0xfe22 irq 49'
  Mixer name : 'Analog Devices AD1984'
  Components : 'HDA:11d41984,17aa20bb,00100400'
  Controls  : 32
  Simple ctrls  : 20
   Card29.Amixer.info:
Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30,
 fw 7KHT24WW-1.08'
  Mixer name : 'ThinkPad EC 7KHT24WW-1.08'
  Components : ''
  Controls  : 1
  Simple ctrls  : 1
   Card29.Amixer.values:
Simple mixer control 'Console',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
   Date: Sat Oct 29 23:43:31 2011
   GvfsMonitorLog: Monitoring events. Press Ctrl+C to quit.
   HibernationDevice: RESUME=UUID=31923f5c-ed0d-4c47-92e3-5ee28dfeafe4
   HotplugNewDevices:

   HotplugNewMounts:

   InstallationMedia: Ubuntu 10.10 Maverick Meerkat - Release amd64
 (20101007)
   MachineType: LENOVO 646067U
   PccardctlIdent:
Socket 0:
  no product info available
   PccardctlStatus:
Socket 0:
  no card
   ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
   ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.0.0-12-generic
 root=UUID=d4fbb1dd-1060-4e10-b8b8-f7d06ae50146 ro quiet splash vt.handoff=7
   RelatedPackageVersions:
linux-restricted-modules-3.0.0-12-generic N/A
linux-backports-modules-3.0.0-12-generic  N/A
linux-firmware1.60
   SourcePackage: linux
   Symptom: storage
   UdevMonitorLog:
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
   UdisksMonitorLog: Monitoring activity from the disks daemon. Press
 Ctrl+C to cancel.
   UpgradeStatus: Upgraded to oneiric on 2011-10-17 (13 days ago)
   dmi.bios.date: 03/18/2011
   

[Bug 883748] Re: Suspend/resume corrupts external data storage devices

2012-07-31 Thread Steve
I have been working around the problem with a shell script hack that
tries to unmount all my known media prior to suspending. Yes, sometimes
it kicks me back to the unlock screen without suspending if I left a
terminal open somewhere that points to external media, but that's kind
of the point (and is certainly better than the alternative).

It would be nice to get a proper upstream fix...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883748

Title:
  Suspend/resume corrupts external data storage devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/883748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 883748] Re: Suspend/resume corrupts external data storage devices

2012-07-30 Thread Christopher M. Penalver
** Tags added: needs-upstream-testing resume suspend

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883748

Title:
  Suspend/resume corrupts external data storage devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/883748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 883748] Re: Suspend/resume corrupts external data storage devices

2011-12-11 Thread Steve
Experienced this once again. Given the severity of the problem, I cannot
believe this is not getting immediate attention.

The device was not removed or even touched between suspend and resume. The 
mount point is filled with some half-assed combination of the original drive 
contents and unreadable files. The only way to restore sanity is to reset the 
disk and remount it, and hope it didn't get corrupted as a result of 
inconsistent writebacks. dmesg is filled with the following:
[236091.998664] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318400 0x0 SD]
[236091.998686] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318401 0x0 SD]
[236091.998695] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318401 0x0 SD]
[236091.998717] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318402 0x0 SD]
[236091.998726] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318402 0x0 SD]
[236091.998748] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318403 0x0 SD]
[236091.998757] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318403 0x0 SD]
[236092.002947] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318404 0x0 SD]
[236092.002967] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318404 0x0 SD]
[236092.002999] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318405 0x0 SD]
[236092.003019] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318405 0x0 SD]
[236092.003043] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318769 0x0 SD]
[236092.003052] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318769 0x0 SD]
[236092.003074] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318388 0x0 SD]
[236092.003084] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318388 0x0 SD]
[236092.003106] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318410 0x0 SD]
[236092.003115] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318410 0x0 SD]
[236092.003137] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318758 0x0 SD]
[236092.003147] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318758 0x0 SD]
[236092.003169] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318390 0x0 SD]
[236092.003178] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318390 0x0 SD]
[236092.003200] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318408 0x0 SD]
[236092.003210] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318408 0x0 SD]
[236092.003232] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318909 0x0 SD]
[236092.003242] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318909 0x0 SD]
[236092.003264] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318389 0x0 SD]
[236092.003274] REISERFS error (device sdc1): vs-13070 
reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of 
[1318385 1318389 0x0 SD]

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883748

Title:
  Suspend/resume corrupts external data storage devices

To 

[Bug 883748] Re: Suspend/resume corrupts external data storage devices

2011-10-31 Thread Brad Figg
** Changed in: linux (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883748

Title:
  Suspend/resume corrupts external data storage devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/883748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 883748] Re: Suspend/resume corrupts external data storage devices

2011-10-31 Thread Ming Lei
Hi,

On Sun, Oct 30, 2011 at 11:31 PM, Steve 883...@bugs.launchpad.net wrote:
 First,  problems can occur because there may be open files on the device
 when the system is suspended. Due to delays in enumeration, the external
 device will not immediately be back when the system is resumed. Thus,

It will be so if reset_resume is set for the usb mass storage device
during resume.

 the effect is that of essentially unplugging the device without
 unmounting it first. Any processes that have files open on the device
 will now have an invalid file handle and will not be able to write to
 those files. While this alone may not immediately result in corruption
 at the filesystem level, it may certainly result in corruption or
 inconsistency at the data level (eg. if a process is writing related
 data to two files, one on the internal drive and one on an external
 drive, and the external drive suddenly goes away due to suspend).

Sounds like writing to filesystem on external device is not finished
before suspending. After resuming, the writing is ongoing but
failed because of reset on external usb device.

PM guys are discussing on linux-pm about suspend block mechanism,
looks like it can prevent the problem from being triggered.


 Second, I am seeing logs in dmesg about how the filesystem was not
 unmounted cleanly (obviously) and also seeing journal replay. Removing
 the device after doing 'sync' should not really result in a journal
 replay unless disk inconsistency is happening, which is what I am seeing
 here.

For the partial writing to filesystem on external device, looks like it should
not be a disaster for filesystem and the fs should deal with this case, such as
just mark this writing as  failure and do not corrupt the whole filesystem.

Could you make sure that the filesystem(REISERFS) on the external device
has been destroyed? If only the single file is affected, it should not be a big
deal.

thanks,
--
Ming Lei

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883748

Title:
  Suspend/resume corrupts external data storage devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/883748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 883748] Re: Suspend/resume corrupts external data storage devices

2011-10-31 Thread Steve
 Could you make sure that the filesystem(REISERFS) on the external device
 has been destroyed? If only the single file is affected, it should not be a 
 big
 deal.

I'm sorry, but this is unacceptable. It is not correct for even a single
file to be affected by this problem. What if it happens to be a very
important file? When it comes to filesystem integrity, it's either fully
correct or it isn't - there is no partial credit here.

The workaround can be done entirely from userspace, without having to
wait for linux-pm guys to sort their stuff out. Back when I ran a gentoo
box, I had a suspend script with a simple 5 lines of shell code which
tried to unmount external devices, and did not initiate suspend unless
this operation completed. Sure, the problem would still occur if you
directly echo mem  /sys/power/state, but at least clicking 'Suspend'
from the UI would try to do the right thing first, and fail to suspend
if unmounting was unsuccessful.

Maybe I will just go back to that script on this system.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883748

Title:
  Suspend/resume corrupts external data storage devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/883748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 883748] Re: Suspend/resume corrupts external data storage devices

2011-10-31 Thread Ming Lei
On Tue, Nov 1, 2011 at 2:44 AM, Steve 883...@bugs.launchpad.net wrote:
 Could you make sure that the filesystem(REISERFS) on the external device
 has been destroyed? If only the single file is affected, it should not be a 
 big
 deal.

 I'm sorry, but this is unacceptable. It is not correct for even a single
 file to be affected by this problem. What if it happens to be a very
 important file? When it comes to filesystem integrity, it's either fully
 correct or it isn't - there is no partial credit here.

Yes, it should be a kind of critical things.

In fact, I mean the problem has been in linux kernel for long time if it
is so.

Suspend blocker mechanism may prevent the problem from being
triggered if it is applied properly, but it is still under discussion
on upstream.
At least now, system sleep can happen at any time. If it does happen during
writing file, file or fs corruption may be caused as the issue.

BTW, I am still not sure if the partial writing before suspend caused
the problem.


 The workaround can be done entirely from userspace, without having to
 wait for linux-pm guys to sort their stuff out. Back when I ran a gentoo
 box, I had a suspend script with a simple 5 lines of shell code which
 tried to unmount external devices, and did not initiate suspend unless
 this operation completed. Sure, the problem would still occur if you

You may not umount successfully if accesses to the filesystem is
pending or ongoing.

 directly echo mem  /sys/power/state, but at least clicking 'Suspend'
 from the UI would try to do the right thing first, and fail to suspend
 if unmounting was unsuccessful.

 Maybe I will just go back to that script on this system.


thanks,
--
Ming Lei

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883748

Title:
  Suspend/resume corrupts external data storage devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/883748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 883748] Re: Suspend/resume corrupts external data storage devices

2011-10-31 Thread Steve
 You may not umount successfully if accesses to the filesystem is
 pending or ongoing.

Yes, that is exactly the point. If you cannot unmount, you cannot and
SHOULD NOT suspend. So, if the user clicks Suspend and everything in
/media cannot be unmounted, you give an error instead of suspending.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883748

Title:
  Suspend/resume corrupts external data storage devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/883748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 883748] Re: Suspend/resume corrupts external data storage devices

2011-10-31 Thread Ming Lei
On Tue, Nov 1, 2011 at 5:55 AM, Steve 883...@bugs.launchpad.net wrote:
 You may not umount successfully if accesses to the filesystem is
 pending or ongoing.

 Yes, that is exactly the point. If you cannot unmount, you cannot and
 SHOULD NOT suspend. So, if the user clicks Suspend and everything in
 /media cannot be unmounted, you give an error instead of suspending.

It will make user confused if suspend operation is just failed because of
a usb mass storage device connected and some directories or files are open,
looks like it is a bit stupid, doesn't it?

Just check for /media is still not enough too, someone may mount external
block devices under other directories.


thanks,
--
Ming Lei

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883748

Title:
  Suspend/resume corrupts external data storage devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/883748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 883748] Re: Suspend/resume corrupts external data storage devices

2011-10-31 Thread Steve
 It will make user confused if suspend operation is just failed because of
 a usb mass storage device connected and some directories or files are open,
 looks like it is a bit stupid, doesn't it?

It looks a lot MORE stupid if you allow the suspend to happen, but then
destroy the data on the disk.

 Just check for /media is still not enough too, someone may mount external
 block devices under other directories.

It doesn't have to be /media, but you can certainly figure out which
devices are external USB storage devices. /proc/mounts would be a good
place to start.

Even in the current scheme, I've had Ubuntu totally screw up the
external storage device stuff. I can have a terminal open to my external
device, and then suspend/resume. The filesystem becomes inaccessible,
and the current directory looks empty. The path given on the shell
prompt now says (unreachable)/whatever. Sometimes you have to cd out
of the external device mount point and back into it, and sometimes the
external device gets mounted under a different name (same UUID, but with
a '_' appended to the name). In this situation, the old device has not
gone away due to the filesystem still having a reference to it, and by
this point the filesystem state is trashed.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883748

Title:
  Suspend/resume corrupts external data storage devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/883748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 883748] Re: Suspend/resume corrupts external data storage devices

2011-10-30 Thread Steve
-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883748

Title:
  Suspend/resume corrupts external data storage devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/883748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 883748] Re: Suspend/resume corrupts external data storage devices

2011-10-30 Thread Ubuntu QA's Bug Bot
** Package changed: ubuntu = linux (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883748

Title:
  Suspend/resume corrupts external data storage devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/883748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 883748] Re: Suspend/resume corrupts external data storage devices

2011-10-30 Thread Steve
First,  problems can occur because there may be open files on the device
when the system is suspended. Due to delays in enumeration, the external
device will not immediately be back when the system is resumed. Thus,
the effect is that of essentially unplugging the device without
unmounting it first. Any processes that have files open on the device
will now have an invalid file handle and will not be able to write to
those files. While this alone may not immediately result in corruption
at the filesystem level, it may certainly result in corruption or
inconsistency at the data level (eg. if a process is writing related
data to two files, one on the internal drive and one on an external
drive, and the external drive suddenly goes away due to suspend).

Second, I am seeing logs in dmesg about how the filesystem was not
unmounted cleanly (obviously) and also seeing journal replay. Removing
the device after doing 'sync' should not really result in a journal
replay unless disk inconsistency is happening, which is what I am seeing
here.

Steve

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883748

Title:
  Suspend/resume corrupts external data storage devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/883748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs