Re: [PATCH] proc: revert /proc/uptime to ->read_proc hook

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 27 Oct 2008, Alexey Dobriyan wrote:
> Petr: please confirm.
> 
> Al, Christoph: could we please find a way to distinguish reads that
> come from pread(2) from reads that come from read(2).

You can compare the offset with file->f_pos, and if not equal, do an
lseek, read, lseek-back.  Or more efficiently, save-state, lseek,
read, restore-state.

Miklos
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux