First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 126001
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: PPC Porters <ppc@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Eugene Surovegin <gentoo@ebshome.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
pbbuttonsd-0.7.8-laptopmode-noatime.patch make laptopmode.sh respect noatime patch Wormo 2006-08-25 19:23 0000 813 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 126001 depends on: Show dependency tree
Show dependency graph
Bug 126001 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-03-12 17:52 0000
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 From Joe Jezak 2006-04-02 09:01:42 0000 -------
No, it should already be parsing your fstab and using the correct option.  Can
you please attach your fstab file?

------- Comment #2 From Eugene Surovegin 2006-04-02 09:47:41 0000 -------
(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 From Joe Jezak 2006-07-08 17:15:33 0000 -------
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 From Wormo 2006-08-25 19:22:02 0000 -------
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 From Wormo 2006-08-25 19:23:43 0000 -------
Created an attachment (id=95098) [edit]
make laptopmode.sh respect noatime

------- Comment #6 From Joe Jezak 2006-08-25 20:29:06 0000 -------
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 From Wormo 2006-08-26 00:34:07 0000 -------
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.

First Last Prev Next    No search results available      Search page      Enter new bug