btrfs-progs: setting of time to the root directory
commitc55248003ca39fa5d102c795474029bf1cfec999
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Wed, 17 Nov 2010 01:07:52 +0000 (17 10:07 +0900)
committerChris Mason <chris.mason@oracle.com>
Tue, 25 Oct 2011 13:18:32 +0000 (25 09:18 -0400)
tree3fa747164406a93a44f7634ec8df53716d840f2d
parent43a06f07c7b64bc4cabfbbf2397fb17b666b155f
btrfs-progs: setting of time to the root directory

This patch adds the setting of time to the root directory to the
mkfs.btrfs command.
As a result, the time of the mount point not correctly displayed
comes to be displayed correctly.

[before]
 # mkfs.btrfs /dev/sdd10
 # mount /dev/sdd10 /test1
 # ls -ld /test1
 dr-xr-xr-x 1 root root 0 Jan  1  1970 /test1

[after]
 # date
 Tue Nov 16 18:06:05 JST 2010
 # mkfs.btrfs /dev/sdd10
 # mount /dev/sdd10 /test1
 # ls -ld /test1
 dr-xr-xr-x 1 root root 0 Nov 16 18:06 /test1

Thanks,
Tsutomu

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
utils.c