Menu

/trunk/gui/middleware/notifier.py Commit Log


Commit Date  
[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
[r9328] (104.8 kB) by yaberauneya

Don't reimport errno.

2011-12-28 02:39:00 View
Download
[r9325] (104.9 kB) by yaberauneya

Fix a typo.

2011-12-27 22:14:56 View
Download
[r9324] (104.9 kB) by yaberauneya

Simplify mntlock acquisition statements and simplify loops.

2011-12-27 22:14:09 View
Download
[r9322] (105.2 kB) by yaberauneya

Fix the format string I added to volume_detach.

2011-12-27 07:38:32 View
Download
[r9318] (105.2 kB) by yaberauneya

Rename volume_export to volume_detach to be more generic [1].
More 'renaming' needs to occur, but this will be an 8.2+ thing,
not an 8.0.3 thing (this is being done to avoid thrashing
dlavinge).

Mash zfs_export into volume_detach because it was only one
command.

Iterate through commands in a loop and stop at any errors to
ensure that things can be cleaned up at a later point in time
if something fails.

Document desired behavior and requirements.

1. Requested by jpaetzel.

2011-12-27 00:50:30 View
Download
[r9298] (103.9 kB) by zippybr

try to catch MiddlewareError exceptions in django middleware instead of case by case

2011-12-22 15:14:54 View
Download
[r9296] (103.9 kB) by yaberauneya

sysctl calls don't need to be printed out on the command line.

2011-12-22 13:54:35 View
Download
[r9284] (103.9 kB) by yaberauneya

Fix some cornercases with adding users.

Here are the issues that pw doesn't catch that we care about:
- pw(8) doesn't restrict users from specifying regular files.
- pw(8) 'silently' fails (it complains via warn(3), but
doesn't return an exit code) if it can't create a home
directory (but only if the root path doesn't exist.. cute).
Example: pw doesn't create home directories if their base
directories don't exist, e.g. /mnt/tank/home/user where
/mnt/tank/home doesn't exist.

- Add a future hook for specifying the home directory mode,
as noted in ticket # 1117.

This doesn't fix modifying users, nor does it fix cleaning up
after users when deleted. This needs to be addressed in their
respective notifier APIs in future commits.

Tested with the following scenarios:

Sanity checks:
1. Create 'bar' with '/nonexistent'.
2. Create 'foo' with '/mnt/tank/foo'.
3. Create 'foo2' with '/mnt/tank/homes/foo', where
'/mnt/tank/homes' didn't already exist; this worked as
expected.

Negative tests:

1. Don't delete used directory:
a. Create 'foo' with '/mnt/tank/foo'.
b. mv /usr/sbin/pw /usr/sbin/pw.old .
c. Try to create 'foo2' with '/mnt/tank/foo'; this
failed but didn't nuke /mnt/tank/foo because it was
still in use.
2. Don't create user with a homedir pointing to a regular
file:
a. Try to create 'foo' with '/mnt/md_size'; failed as
expected.

2011-12-21 23:51:21 View
Download
[r9281] (99.6 kB) by jhixson

Do not restart http here, it belongs elsewhere.

Do-Not-Merge: Don't put in TrueNAS

2011-12-21 20:27:53 View
Download
Older >
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.