Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126001 - pbbuttonsd-0.7.4 - Laptop mode script ignores noatime in fstab
Summary: pbbuttonsd-0.7.4 - Laptop mode script ignores noatime in fstab
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: PPC Linux
: High minor (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-12 17:52 UTC by Eugene Surovegin
Modified: 2006-08-26 00:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
make laptopmode.sh respect noatime (pbbuttonsd-0.7.8-laptopmode-noatime.patch,813 bytes, patch)
2006-08-25 19:23 UTC, Wormo (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Surovegin 2006-03-12 17:52:20 UTC
laptopmode.sh which comes with pbbuttonsd-0.7.4 ebuild always sets "atime" option for mount when exiting laptop mode.

I have noatime set in my fstab for root reiserfs partition and it'd be great if laptopmode.sh honored this.

Commneting out line 284 in laptopmode.sh solves this problem for me, although I don't think this is the righ fix :).
Comment 1 Joe Jezak (RETIRED) gentoo-dev 2006-04-02 09:01:42 UTC
No, it should already be parsing your fstab and using the correct option.  Can you please attach your fstab file?
Comment 2 Eugene Surovegin 2006-04-02 09:47:41 UTC
(In reply to comment #1)

# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.10 2002/11/18 19:39:22 azarah Exp $
#
# noatime turns of atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.

# <fs>                  <mountpoint>    <type>          <opts>                  <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda12              /               reiserfs        noatime                 0 0
/dev/hda11              none            swap            sw                      0 0
/dev/hda10              /mnt/osx        hfsplus         ro                      0 0
proc                    /proc           proc            defaults                0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink). Adding the following
# line to /etc/fstab should take care of this:
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will use almost no
#  memory if not populated with files)

tmpfs                   /dev/shm        tmpfs           defaults                0 0

/dev/sda3               /mnt/ipod       hfsplus         defaults,ro,uid=1000,gid=100,user,noauto        0 0
/dev/sr0                /mnt/cdrom      auto            ro,noauto,user,exec
/dev/hde1               /mnt/canon      vfat            defaults,noauto,ro,uid=1000,gid=100,user
Comment 3 Joe Jezak (RETIRED) gentoo-dev 2006-07-08 17:15:33 UTC
I still can't reproduce this.  Does it happen with 0.7.6?  Can you print the value of PARSEDOPTS after that line?
Comment 4 Wormo (RETIRED) gentoo-dev 2006-08-25 19:22:02 UTC
I've tracked down the problem -- this breaks when /etc/fstab has tabs instead of spaces. The patch is a one-liner. I checked the latest version of pbbuttonsd in the tree (0,7,8) and the bug is still there.

JoseJX:
What's your opinion on patching the older pbbuttonsd versions? Maybe it's time to clean some of them out, since there are now 3 stable versions?
Also, do you want to submit the patch upstream since you've been working with them already? 
Comment 5 Wormo (RETIRED) gentoo-dev 2006-08-25 19:23:43 UTC
Created attachment 95098 [details, diff]
make laptopmode.sh respect noatime
Comment 6 Joe Jezak (RETIRED) gentoo-dev 2006-08-25 20:29:06 UTC
Thanks for looking into this Wormo. :)

Feel free to pass the patch upstream, there's no need for me to be involved.  (unless you don't want to do it that is).  As for the old versions, we certainly can clean them out.  I kept 0.6.6 in the tree because there was a lot of complaining about versions after that (IPC change).  As for the 0.7.x versions, I just haven't cleaned them out in a while. :|  Next time there's a version bump, I'll get rid of the extras.
Comment 7 Wormo (RETIRED) gentoo-dev 2006-08-26 00:34:07 UTC
Ok, I went ahead and patched all the existing versions, letting JoseJX decide which old abuilds to clean up at some future time ;)

Upstream has been notified, so the fix should make it into future versions.