Commit | Date | |
---|---|---|
[r9418]
(111.6 kB)
by
yaberauneya
Clean up cornercase where a zvol, dataset, zpool in use when deleting a zvol would delete the zvol from the GUI/db, but wouldn't actually remove things from the backend in FreeBSD. Introduce a few new notifier APIs to help ease this pain: __get_mountpath - get the mountpath for a volume/dataset (name) Split storage.models.Volumes.delete into two functions again to 'clean up' the database after storage.models.Volumes._delete has been run, in such a manner that the mountpoints aren't preemptively removed, even though some of the dataset / zvol objects might have been successfully removed, and instead are removed in the event that the directory, that previously was the mountpoint, is no longer present. These APIs are coded relatively conservatively for now to avoid putting the user into situations where they need to do database surgery.. they can and should be cleaned up later to be more explicit and straightforward by tossing proper Exceptions up the stack. This doesn't catch the following cases: mount -f vol zpool destroy -f tank when I'm in /mnt/vol or /mnt/tank (this occurs on 8.0.3 as well and this is sort of by design as they're 'force' operations). This might be a noop, or something of concern. This change -- along with r9317 and r9318 -- resolves the issue where one couldn't export volumes via the GUI, as explained in ticket # 1126. |
2012-01-05 06:07:24 |
View
Download |
2012-01-05 06:07:10 |
View
Download |
|
2012-01-03 04:00:26 |
View
Download |
|
[r9390]
(106.3 kB)
by
yaberauneya
Remove always False case, and refactor to be slightly more optimal. |
2012-01-03 03:56:52 |
View
Download |
2012-01-02 22:05:51 |
View
Download |
|
2011-12-29 21:30:29 |
View
Download |
|
2011-12-29 01:14:12 |
View
Download |
|
[r9337]
(105.5 kB)
by
yaberauneya
Provide better diagnostic output when creating a home directory fails. |
2011-12-28 19:24:40 |
View
Download |
[r9336]
(105.5 kB)
by
yaberauneya
Add a safety belt to ensure that the user doesn't put his/her home directory under a subdirectory on the /mnt memory disk. |
2011-12-28 19:21:37 |
View
Download |
[r9329]
(104.8 kB)
by
yaberauneya
Make sure the nut daemons are dead. This closes a potential issue where nut stays up and running even after the service sliders claim things are off. |
2011-12-28 02:44:03 |
View
Download |