[maemo-developers] [maemo-developers] swapfile is a huge improvement!
From: Brad Midgley bmidgley at xmission.comDate: Mon Jan 16 21:04:54 EET 2006
- Previous message: [maemo-developers] swapfile is a huge improvement!
- Next message: [maemo-developers] swapfile is a huge improvement!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Urho > If user has swapon. User opens MMC door. System pops up a large RED GUI > that states: You have swap active. Please turn off swap before removing > MMC from the slot. GUI would have one large button (turn off swap). > After swapoff, GUI would turn green and say, it's safe to detach MMC now. if a user opens the door, you must assume they are going to eject the card. this is what nokia does with the fat partition. you should pop up your gui and make a beep and run swapoff. the message should say 'do not eject the card yet' i believe it's possible for swapoff to fail if memory is overcommitted, so you have another case to worry about. the device should tell you you'll have to close apps or turn off the nokia first and possibly give you buttons to do that. > On USB cable insertion, the same GUI would popup and tell user that MMC > cannot be mounted on PC until swap is off. Again, nice large button to > turn swap off. why bother the user? we should be using a swap partition--not a swapfile on the fat fs--right? every usb-host OS will leave the swap partition alone by default. > When MMC inserted back from either USB connection or physically, system > would check if previous state was swapon and popup a gui asking if swap > should be resumed. i would make the swapon automatic whenever a swap partition is found on rsmmc, but then it could be a 'remember this decision' checkbox on your gui. brad
- Previous message: [maemo-developers] swapfile is a huge improvement!
- Next message: [maemo-developers] swapfile is a huge improvement!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]