public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Bug#694624: /usr/sbin/xfs_freeze: freezes under lying (root)
@ 2012-12-02 23:31 Pat Emblen
  2012-12-03 21:48 ` Dave Chinner
  0 siblings, 1 reply; 4+ messages in thread
From: Pat Emblen @ 2012-12-02 23:31 UTC (permalink / raw)
  To: 694624

Well it's your call, but I'll make my case for changing it.
- I think it is very dangerous default behaviour, particularly in 
scripts as it can prevent
the possibility of logging in to unfreeze a frozen root.
- The docs all strongly imply that it operates on mountpoints, so surely 
not many people
would have diliberately used it on general paths?"
         xfs_freeze -f | -u mount-point"
"The mount-point argument is the pathname of  the  directory  where  the
        file system  is  mounted."
- Because of the name and the wording of the man page, you don't expect 
xfs_freeze to
freeze an ext4 file system that isn't even mounted on the path you pass 
to it?!
- It's logical to have it work on mountpoints only. You wouldn't expect 
umount or fdisk to
work the same way? Do any other partition level tools work this way?
- At the very least I would expect it to require a 'force' option if it 
was going to freeze
the root system.

Thanks.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Bug#694624: /usr/sbin/xfs_freeze: freezes under lying (root)
@ 2012-12-03 23:53 Pat Emblen
  2012-12-04  2:15 ` Dave Chinner
  0 siblings, 1 reply; 4+ messages in thread
From: Pat Emblen @ 2012-12-03 23:53 UTC (permalink / raw)
  To: 694624

 > If you are running scripts remotely and they don't handle errors
 > properly, then that's your problem....

OK, can you then fix the man page to describe the real behaviour of the
program so that users have a chance to intelligently decide what error
checking to do in their scripts.
I.E the argument isn't a mount point, it's a path, and perhaps use
'filesystem' rather than 'xfs' consistently.

 > If you can't unfreeze the root filesystem by running xfs-freeze -u
 > immediately afterwards then that's a filesystem bug, not a problem
 > with the userspace command.

It may also be a good idea to point out in the man page that you should be
extremely careful running this if you are not logged in interactively, 
even a
disconnected ssh session will prevent you running xfs_freeze -u to manually
unfreeze the root filesystem.
Thanks
Pat Emblen

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-12-04  2:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-02 23:31 Bug#694624: /usr/sbin/xfs_freeze: freezes under lying (root) Pat Emblen
2012-12-03 21:48 ` Dave Chinner
  -- strict thread matches above, loose matches on Subject: below --
2012-12-03 23:53 Pat Emblen
2012-12-04  2:15 ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox