Package: ruby1.8
Version: 1.8.7.72-3
Severity: wishlist
File: /usr/bin/ruby


I would like to be able to specify File::NOATIME mode when opening a file 
through File.new():

irb(main):001:0> f = File.new("file", File::RDONLY|File::NOATIME)
NameError: uninitialized constant File::NOATIME
        from (irb):1
        from :0

>From the open(2) man page:
       O_NOATIME (Since Linux 2.6.8)
              Do not update the file last access time (st_atime in the inode) 
when the file is read(2).  This flag is intended for 
              use by indexing  or  backup  programs,  where  its use can 
significantly reduce the amount of disk activity.  This flag 
              may not be effective on all file systems.  One example is NFS, 
where the server maintains the access time.

Here's the definition of O_NOATIME from /usr/include/bits/fcntl.h:
#ifdef __USE_GNU
# define O_DIRECT        040000 /* Direct disk access.  */
# define O_DIRECTORY    0200000 /* Must be a directory.  */
# define O_NOFOLLOW     0400000 /* Do not follow links.  */
# define O_NOATIME     01000000 /* Do not set atime.  */
# define O_CLOEXEC     02000000 /* Set close_on_exec.  */
#endif

  Thanks //Johan

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ruby1.8 depends on:
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  libruby1.8                    1.8.7.72-3 Libraries necessary to run Ruby 1.

ruby1.8 recommends no packages.

Versions of packages ruby1.8 suggests:
ii  rdoc1.8                       1.8.7.72-3 Generate documentation from Ruby s
pn  ri1.8                         <none>     (no description available)
ii  ruby1.8-examples              1.8.7.72-3 Examples for Ruby 1.8

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to