Re: [PATCH] statfs.2: Update + Note for pipe() fds

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

 



Hi!
> > * Update MAGIC constants, most of them are taken from
> >   /usr/include/linux/magic.h, some were found by grepping Linux source.
> > 
> > * Add note about fstatfs(2) broken on fd from pipe(2) between
> >   2.6.38 and 3.2
> 
> I moved that patch piece to a (new) BUGS section.
> 
> Looking at the following:
> 
> $ git describe --contains ff0c7d15f9787b7e8c601533c01529
> v2.6.38-rc1~60^2~30
> $ git describe --contains d70ef97baf048412c395bb5d65791d
> v3.2-rc1~108^2~56
> 
> The breakage was from 2.6.38 to 3.1, right? (3.2 fixed things.)
> I reworded a little.

Ah, right. Sorry for the off by one mistake.

> And I just want to check. Was it really ff0c7d15f9787b7e8c601533c01529
> that caused the breakage? At a quick glance, that patch looks
> unrelated, but perhaps something very subtle is going on...

Yep, it took me a while to notice. If you pass NULL as super_operations
to mount_pseudo() function, which was the case before the patch, default
structure super_operations (with contains only simple_statfs) is used
(have a look at mount_pseudo() in fs/libfs.c). This patch added
pipefs_ops without the statfs callback and passed it instead of the
NULL.

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




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux