ééã£ã¦ããããã³ããé¡ããã¾ãã ext4 ãåºãã¿ã¤ãã³ã°ã§è©±é¡ã«ãªã£ããã¨ã ãã©ã(ext4 ã«é¢ä¿ãªãä¸è¬è«ã¨ãã¦) ãã¡ã¤ã«ãå®å ¨ã«æ¸ãæããããã«ã¯ãããã¤ãã®æé ãè¸ãå¿ è¦ããããã§ãPerl ã ã¨ã ããã以ä¸ã®ããã«ãªãã # 1) é©å½ãªãã³ãã©ãªãã¡ã¤ã«å (æ ¼ç´å ã¨åãã£ã¬ã¯ããª) my $newfn = "tmp.$$"; # 2) ãã¡ã¤ã«ãæ¸ã㦠fsync open my $fh, '>', $newfn or die "failed to open file:$newfn:$!"; print $fh $data; IO::Handle::flush($fh); or die "flush failed:$!"; IO::Handle::sync($fh); or die "fsync failed:$!"; close $fh; # 3) å¤ããã¡ã¤ã«ãå¥
{{#tags}}- {{label}}
{{/tags}}