ecryptfs: clean up attribute mess
authorGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Oct 2007 22:01:24 +0000 (15:01 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Jan 2008 04:40:08 +0000 (20:40 -0800)
commit30a468b1c1b9911ae515ff8972ee10c50cca3021
tree99b891f04425e418f4ae5745a32a86531bb8b245
parent02ff82cac7ee7351d2649c4a3568f12e4e0fe534
ecryptfs: clean up attribute mess

It isn't that hard to add simple kset attributes, so don't go through
all the gyrations of creating your own object type and show and store
functions.  Just use the functions that are already present.  This makes
things much simpler.

Note, the version_str string violates the "one value per file" rule for
sysfs.  I suggest changing this now (individual files per type supported
is one suggested way.)

Cc: Michael A. Halcrow <mahalcro@us.ibm.com>
Cc: Michael C. Thompson <mcthomps@us.ibm.com>
Cc: Tyler Hicks <tyhicks@ou.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ecryptfs/main.c