Set mtime on symbolic links
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 18 Oct 2011 21:51:03 +0000 (14:51 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 18 Oct 2011 22:49:31 +0000 (15:49 -0700)
commit6f2255ba8ac93a86ec217775e8f9fc145bc52b39
tree7c49ff820bab9bc6565ae178887a61f57c2c647d
parent8d35c1499de42a1910ac1bb3a9c537ddc43c7d4d
Set mtime on symbolic links

Register the setattr/getattr callbacks for symlinks.  Without these
the generic inode_setattr() and generic_fillattr() functions will
be used.  In the setattr case this will only result in the inode being
updated in memory, the dirty_inode callback would also normally run
but none is registered for zfs.

The straight forward fix is to set the setattr/getattr callbacks
for symlinks so they are handled just like files and directories.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #412
module/zfs/zpl_inode.c