From: Pavel Emelyanov Date: Tue, 11 Jun 2013 10:41:24 +0000 (+0400) Subject: tun: Report "persist" flag to userspace X-Git-Tag: v3.11-rc1~16^2~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=274038f8c94c493e2977983e2aecb5f5f0778479;p=pandora-kernel.git tun: Report "persist" flag to userspace The TUN_PERSIST flag is not reported at all -- both TUNGETIFF, and sysfs "flags" attribute skip one. Knowing whether a device is persistent or not is critical for checkpoint-restore, thus I propose to add the read-only IFF_PERSIST one for this. Setting this new IFF_PERSIST is hardly possible, as TUNSETIFF doesn't check for unknown flags being zero and thus there can be trash. Signed-off-by: Pavel Emelyanov Signed-off-by: David S. Miller --- Reading git-diff-tree failed